drop down menu

From: Date: Thu, 30 May 2002 20:53:03 +0000
Subject: drop down menu
Groups: php.db 
Request: Send a blank email to php-db+get-19538@lists.php.net to get a copy of this message
Hi to all, how can I display information in a drop down menu? What I want to do is: select all the values from info_sys field and display them in a drop down menu. This is what I have so far, but only display one value at a time. $sql = mysql_query("SELECT info_sys from project order by project_id, project_id ASC"); while($query_data = mysql_fetch_array($sql)) { $info_sys = $query_data[info_sys]; } <select name="info_sys"> <option><? echo $info_sys; ?></option> </select> Any help is greatly appreciate Thanks in advanced Nato

« previous php.db (#19538) next »