Hi, This type of qustion should be forwarded to PHP-DB list. Its adres is: [EMAIL PROTECTED] .
As for the answer to your question.. IF you'd like to create a dynamic drop-down menu.. You can just just query the table for the options to be displayed and loop through the result set and print them on html .. For example: $query="select field from table"; $result=mysql_query($query); $numrows=mysql_num_rows($result); echo '<select name="categories">'; for ($i=0; $numresult < $i; $i++) { $row=mysql_fetch_array($result); echo '<option>'.($row["field"]).''; } Gurhan -----Original Message----- From: mailing list [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 4:52 PM To: [EMAIL PROTECTED] Subject: drop down list using php and mysql Hello, I am trying to build a drop down list using php and mysql. Does anyone have any examples of this? Regards, Adrian --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php