MySQL Forums
Forum List  »  PHP

Re: Creating a Dynamic dropdown menu from MYSQL db
Posted by: Paul Kalinka
Date: February 27, 2006 07:58PM

I'm doing the same type of thing Rich - I'm very new to PHP and Sql too. So anyways, in looking at what Bob posted, I couldn't figure out why it was giving the problems it was. So here are the changes I made to get it to work:

echo "<select name=\"search\">";
while($row = mysql_fetch_assoc($result))
echo "<option>$row[c_type]</option>";
else {
echo "<option>No Types Found</option>";

Good Luck & I hope to use this site more often - It's not too often you find current posts in a forum when you are trying to do something!

Options: ReplyQuote

Written By
Re: Creating a Dynamic dropdown menu from MYSQL db
February 27, 2006 07:58PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.