Hello!
I have been trying to find an answer for this one...
all i am trying to do is...populating a drop down list from a
mysql db...why is my drop down list empty?
whats wrongwith the below code...?
<HTML>
<select name="home_name">
<?php
include "mysql_data.inc";
$strsql = "select * from homes";
$rsTmp = mysql_query($strsql) or die("Query failed");
while($rowTmp = mysql_fetch_array($rsTmp,MYSQL_ASSOC)) { ?>
echo "<option><?=$rowTmp[0]?></option> ";
<?php } ?>
</select>
?>
</HTML>