I am trying to build a php blog from scratch. Everything is working except the menu. I run this code on a different CMS and it is working, but on the blog I am building is not.
<div id="navigation">
<ul class="menu">
<li><a href="<?php echo DIR;?>">HOME</a></li>
<?php
//get the rest of the pages
$sql = mysql_query("SELECT * FROM pages WHERE isRoot='1' ORDER BY pageID");
while ($row = mysql_fetch_object($sql))
{
echo "<li><a href=\"".DIR."?p=$row->pageID\">$row->pageTitle</a></li>";
}
?>
I get the Home link but not the rest.
Thank you!