I have created a table called menu and two of its columns are menu_option and menu_content. What I want to do is, after I click on a menu_option to go to a separate .php file i created, which is supposed to show in a div the menu_content.
I still haven't figured out why when I click on it, it tells me that the object cannot be found.
<?php
$res=mysql_query("SELECT * FROM menu");
while($row=mysql_fetch_array($res)){
echo "<ul>";
echo "<li>";
echo "<a href=\"menucontent.php\">";
echo $row['menu_option'];
echo '</a>';
echo "</li>";
echo "</ul>";
}
?>
At first I thought this could work and in my menucontent.php I could use echo $row['menu_content']; to print the proper menu content for the menu option.
I would really apreciate any suggestions.