I only ask questions if I have tried to do something myself already. I am not looking for someone to do something for me. When I do ask a question though, I feel I deserve at least a little respect. If you want to be an ass, do it somewhere else.
> From: Jason Wong <[EMAIL PROTECTED]> > Organization: Gremlins Associates > Reply-To: [EMAIL PROTECTED] > Date: Sat, 29 Jun 2002 23:54:22 +0800 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Populate Popup Menu from Database > > On Saturday 29 June 2002 23:41, Mike Tuller wrote: >> I have some popup menus and want the items in the menu to be populated from >> a database. In this case I have a table that contains a listing of >> departments. I have a page that I can go in and add/delete departments, and >> want the changes to reflect in the menu the next time you go to the page. >> >> I searched for examples and found this: >> >> http://marc.theaimsgroup.com/?l=php-general&m=97628169623096&w=2 >> >> 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. > > There are two things you need to know: > > 1) How to construct a select list in HTML > 2) How to retrieve the info from the db > > What are you having problems with? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > The only rose without thorns is friendship. > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php