Page 1 of 1

Problem in php?

Posted: Tue Sep 15, 2009 11:15 pm
by adilmarwat2004
I have a problem

Database Name: prj
Table 1: province
Field Name: pro_name
Field Data: NWFP
Punjab
Sindh

Table2: districts_nwfp
Field Name dis_names
Field Data: Bannu
Kohat
Karak

I want to create a php page with two drop down menus.

One show the Province name

other show the districts name

When I select the NWFP from the menu then in the next menu it would automatically retrieve the districts_nwfp data items of field “dis_names”, like name "Bannu", "Kohat", "Karak".


please help me in this regard.


thanks

Re: Problem in php?

Posted: Wed Sep 16, 2009 1:41 am
by CoderGoblin
Loading data in a combobox from a db with local filtering is already a topic discussing this sort of problem. You may find your answer by looking there and contributing to that discussion.