how to execute a query depending on the value selected

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

Locked
kaif
Forum Newbie
Posts: 12
Joined: Thu Jan 06, 2011 11:12 pm

how to execute a query depending on the value selected

Post by kaif »

hi,

how to populate the other fields by executing a query depending on the value selected in the list box.

I have a list box which is getting the values from the database.

For example:

student Id

st01
st02
st03

if the user selected st01 in the list it should populate the the student name and branch in the below two text boxes which should populate from the database table.

Please help me ,it is a part of my project work.

Thanks
Kaif khan
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: how to execute a query depending on the value selected

Post by Benjamin »

:arrow: Duplicate = Locked
Locked