Re: [PHP] Drop down lists

2004-01-18 Thread Toby Irmer
if you say you don't know much, maybe you are looking for something like this ;) hth toby \n"; foreach($options AS $key => $display) { echo " $display\n"; } echo "\n"; } //get users from db $query = " SELECT * FROM users"; $result = mysql_query($query); w

Re: [PHP] Drop down lists

2004-01-18 Thread Peter Vertes
Yes it's possible.  I believe there's a way to do it with PEAR also but I've never done it that way before.  I always do: ---     --- Please Choose a Username ---         // retrieve a list of usernames from the DB     $results = mysql_query("SELECT userID, username FROM users")  

[PHP] Drop down lists

2004-01-17 Thread BigMark
Is it possible to have usernames from my db populated into a drop down list. If so What and where does it go to make it all work, ive tried everything i know ( which is not much by the way). Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p