Foser Posted July 2, 2007 Share Posted July 2, 2007 Im trying to do somekind of dropdown menu taking information from the database but im not quite sure how this could be done with my knowledge. alright so lets say i have a table named: projects SELECT name FROM project. and it will put all the data found in a html drop down menu? can anyone lead me in the right way? thanks Link to comment https://forums.phpfreaks.com/topic/58028-solved-mysql-fetch-with-drop-down-menu/ Share on other sites More sharing options...
BillyBoB Posted July 2, 2007 Share Posted July 2, 2007 Sure i did this with my pm system for the users <?php $info = mysql_query("SELECT * FROM project"); echo("<select name=\"names\">"); while($infoarray = mysql_fetch_array($info)) { echo("<option>$infoarray[name]</option>"); } echo("</select>"); ?> If you need more of an explanation just ask Link to comment https://forums.phpfreaks.com/topic/58028-solved-mysql-fetch-with-drop-down-menu/#findComment-287633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.