pancgom Posted April 3, 2008 Share Posted April 3, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/99340-php-and-mysql/ Share on other sites More sharing options...
MadTechie Posted April 3, 2008 Share Posted April 3, 2008 Sorry we will help with code but not write it for you.. however this type of question has been asked a few time and i wrote some basic code to help people get started. its not perfect but help you get going see here Quote Link to comment https://forums.phpfreaks.com/topic/99340-php-and-mysql/#findComment-508291 Share on other sites More sharing options...
pancgom Posted April 5, 2008 Author Share Posted April 5, 2008 Maybe i said it wrong by saying that i have been trying. I needed help didnt want you to write the code for me exclusively. Thanks Much. Quote Link to comment https://forums.phpfreaks.com/topic/99340-php-and-mysql/#findComment-510014 Share on other sites More sharing options...
kenrbnsn Posted April 5, 2008 Share Posted April 5, 2008 Then post the code you've written and tell us where you're having problems. Ken Quote Link to comment https://forums.phpfreaks.com/topic/99340-php-and-mysql/#findComment-510018 Share on other sites More sharing options...
pancgom Posted April 5, 2008 Author Share Posted April 5, 2008 No Thanks. Figured out myself by now, i should be ok. Thanks Much for the concern. Quote Link to comment https://forums.phpfreaks.com/topic/99340-php-and-mysql/#findComment-510029 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.