Problem in php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adilmarwat2004
Forum Commoner
Posts: 44
Joined: Fri Sep 04, 2009 11:28 pm

Problem in php?

Post 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
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Re: Problem in php?

Post 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.
Post Reply