Drop down menu

admin

Administrator
Staff member
Hi,

I was trying to do a drop down menu to pull from data from a table. can anyone tell me if i have any errors in my html coding below?

Thanks,
Winnie

<select name ="family" size "1">
<?PHP
$conn=pg_connect("dbname=wcheng port=5432");

$family=pg_Exec($conn, "select family_name from family");
$count=pg_NumRows($family);
$i=1;
$k=0;
while ($i<$count){
list($family_name)=pg_fetch_row($family,$k);
<option value =http://www.phpbuilder.com/board/archive/index.php/"<?echo $family_name;?>">
$i++;
$k++;
}
?>
</select>
 
Back
Top