Dynamic PHP drop down menu
Hello everyone,
I am creating a dynamic drop down menu off of a mySQL database, I need to make these options so that they are links to jump to another portion of my site. Any help would be greatly appreciated. here is what I have running so far.
code:
//drop down model select............................................ ..................
$sql="SELECT model FROM aedvalues";
$result=mysql_query($sql);
mysql_close();
$options="";
while ($row=mysql_fetch_array($result))
{
$id=$row["model"];
$options.="<OPTION VALUE=\"$id\">" .$id;
// \"$id\">"
}//end of while loop
?>
...
Choose AED Model
...
<SELECT NAME=thing>
<OPTION VALUE=0>Choose
<?=$options?>
</SELECT>
...
<?php
Thanks!
|