Menu
Hi i have this code.. How would i go about echoing the text into a drop-down menu?
Thanks, Fet
[code=php]
<?
require ‘db_connect.php’;
$query = (“SELECT Nav_Bar FROM Front_Page”);
$result = mysql_query($query);
if (!$result) {
$message = ‘Invalid query: ‘ . mysql_error() . “n”;
$message .= ‘Whole query: ‘ . $query;
die($message);
}
while ($row = mysql_fetch_assoc($result)) {
echo $row[‘Nav_Bar’];
}
mysql_free_result($result);
?>