
January 27th, 2004, 08:22 AM
|
|
|
|
Join Date: Apr 2007
Location: chennai,tamilnadu,india
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Top Urgent
I am using PHP 4 with mysql. I am able to connect database, populate result in a combo using Javascript. With the first combo I now have to make a selection and populate a second combo(drop down). How can I create this second level query.
for ex:
table1 / field1 in Database = mode of transport - contains - road, air.
field 2 shall have car,bike,scooter for road and plane,helicopter for air.
Once the user selects road my second combo should have car,bike,scooter and if the user select air the second combo should be populated with plane,helicopter. Like this i can have any number of data in my table.
|