Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more - View Single Post - Dynamic PHP drop down menu
View Single Post
Old 06-29-2009, 03:16 PM   #1 (permalink)
Dvlpmnt_Ranger
Junior Member
 
Dvlpmnt_Ranger's Avatar
 
Join Date: Jun 2009
Posts: 5
Exclamation 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!
Dvlpmnt_Ranger is offline   Reply With Quote
Sponsored Links