hello. I have a drop down menu that pulls from a mysql database. I know its connecting fine and there is actual items in the drop down menu because I echoed them.
However when I look at my drop down box, you cannot see the options! I know the items are there but its simply not visible. HOw can I alter my code so that its visible.
php:
$sql="SELECT title FROM Election";
$result= mysql_query($sql);
$options="";
while ($row=mysql_fetch_array($result)) {
$title=$row["title"];
$options.="<OPTION VALUE=\"$title\">";
}
}
HTML:
<SELECT NAME="title" style="font-size:11pt; font-family: arial,helvetica,sans-serif; color:#080000">
<OPTION VALUE="0" style="font-size:11pt; font-family: arial,helvetica,sans-serif; color:#080000">View an election
<?=
$options
?>
</SELECT>