Hi phpeople
I made some dynamic drop down menus related with a database and they work ok. The thing is that above the first option of the menu there are like 8 blank spaces. Like if there were spaces with no data.
My code-->
<?
$options="";
while ($row=mysql_fetch_array($Res)) {
$name=$row["name"];
$options.="<OPTION VALUE=\"$name\">".$name;
}
?>
and then
<select name="menu" size="1" id="select">
<option selected>Select</option>
<option>
<?=$options?>
</option>
</select>
------------->
Does anyone knows why this may be happening?
Thank you