RE: [PHP] html form question

From: Date: Thu, 26 Jul 2001 01:11:10 +0000
Subject: RE: [PHP] html form question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59654@lists.php.net to get a copy of this message
Funny you should ask - just done it myself: <?php $table="shoots"; require ("connect.php4"); $result=MYSQL_QUERY( "SELECT eventName FROM $table"); $num_rows = mysql_num_rows($result); for ($i=0;$i<$num_rows;$i++) { echo "<option>"; echo mysql_result($result,$i,"eventName"); echo "</option>"; } MYSQL_CLOSE(); ?> - seb

« previous php.general (#59654) next »