<select name="somename"> <?php $sql = "SELECT id, name FROM table"; $res = mysql_query($sql); while (list($id, $name) = mysql_fetch_array($res)) { echo "<option value=\"$id\">$name</option>"; } ?> </select>
-- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Jeff Dale" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to have a dropdown list populated with data from my MySql server. > > Any examples or websites that could help is appreciated. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php