I'm not sure exactly what your asking? You want a drop down menu that will list/link output from a database? If that is what you want to do you just:
PHP Code:
while ($row = mysql_fetch_row($result)) {
to output the fields you want to use as the names and ID's of the selections on you drop down menu. Use a CSS drop down menu so all you have to do is use something like
PHP Code:
echo " <td width='50'><a href='page1.php?linkID=$row[1]' id="navCSS">$row[0]</a></td>"
}
Then the page you link to will output the results of the database according to the linkID. So you just do a mySQL query with something like:
PHP Code:
$result=mysql("SELECT * FROM Table WHERE fieldID='$linkID' ORDER BY fieldID");
while ($row = mysql_fetch_row($result)) {
echo "Info1: $row[0]<br>Info2: $row[1]<br>Info3: $row[2]";
}
So then search for something like "All CSS Drop down menu's" as they have plenty that use min. JavaScript if any. I have one on our site but it would take too long to explain it.
|