Forum Moderators: coopster
$query = "select * from readers2";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
echo '<form method=post action="results2.php">';
echo '<select name=searchterm>';
echo '<option></option>';
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo '<option>';
echo stripslashes($row['building']);
echo '</option>';
}
echo '</select>';
echo '<input type="submit" value="Go">';
echo '</form>';
Any ideas?