hello guys;
I have read and watched and tried 2 million times to create the same thing that is in the tutorials in "Dynamic populating the drop down list based on the selected value of first list" but when I want to change it to my own website and convert it the way that works with my website I get stocked and it doesn't work!![]()
I have 2 tables in mysql database; one is """car_names""" which contains the brand of the cars like: BENZ, BMW, NISSAN, HONDA, ...... and this table has 4 rows as below: :
1=> id
2=> menu_name
3=> position
4=> visible
the second table is """car_models""" which contains the type of the cars related to the first table like: 220E, 330E, civic, accord, sunny, .... and this table has 5 rows as below:
1=> id
2=> carname_id
3=> menu_name
4=> position
5=> visible
As I have created my web page in php I have 2 dropdown select lists that if you choose any car from the first list it works perfectly and brings me all the car's names from the first table from the database>>> menu_name's row. BUT if I choose for example HONDA from the first list the second list still remains empty. I have tried to change the code the I have downloaded from Dynamic populating the drop down list based on the selected value of first list and replace it with mine in or exchange some parts with my code but it didn't work!
I will really appreciate your helps and comments.
Please help me to get this code work for my website, it has been a headache for me about 2 months already!
I don't know how to upload the files here in this website but if you need I can send you the mypage with mysql database files for you.
Submit Your Article
Forum Rules

Reply With Quote
