Jump to content

Recommended Posts

I have a table (mySQL) in which there is data which contains name, empID, department.

 

Now i have a form built in PHP which has the name, empID and department fields, this form is used to retrieve information from the table mentioned above and display.

 

the name field is a drop down menu list (combo box) which lists all the names in the table drawn from the database. Upon selecting a name the corresponding details to that particular name such as empID and Department should display in the respective fields in the php retrieval form.

 

How do i retrieve and display names in the combo box and how to display the other information in the fields corresponding to the name is my question?.

 

 

Can i have the code for that please... i have been trying to do this for long with different things maybe i am new i am not able to even figure out what is going on...please help...

Link to comment
https://forums.phpfreaks.com/topic/99340-php-and-mysql/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.