Re: Populate Popup Menu from Database
| From: | Erik Price | Date: | Mon, 01 Jul 2002 13:18:12 +0000 |
| Subject: | Re: Populate Popup Menu from Database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104651@lists.php.net to get a copy of this message | ||
On Saturday, June 29, 2002, at 11:41 AM, Mike Tuller wrote:
What is here is beyond my understanding, and seems like it is a little much
for what I need.
Here is what my database table looks like:
Departments
department_id
department_name
I just want to list the department name in the popup.
although I wrote this instruction in response to a question about integrating the listbox with javaScript, ignore the JS stuff, and you will see how to dynamically populate a listbox with database data:
http://marc.theaimsgroup.com/?l=php-general&m=102503848224300&w=2
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
pricee@hhbrown.com