I am trying to create a modular website where I can add "mini modules" to the right side (like navigation, rss feeds, news, etc.). I have a mysql database that contains the names and locations of these modules. I also have an admin page that controls the order these "mini modules" are displayed.
The code that loops through and displays them works fine.
The problem comes when I try to display modules in a certain order. If I put module two and/or three before module one, it works fine. If I put module two and/or three after one, module one displays but not two or three.
Obviously the problem is in module one, but I cannot for the life of me figure it out. You can visualize it better on my website: www.electricmonk.us
Module one is the navigation links on the right. I cannot display any thing below it, but I can above it. Any Ideas
//module 1
<div class="links">
<?php
//code to connect to database
$result = mysql_query("SELECT * FROM links WHERE included='y' order by 'orderno' ASC");
while ($row = mysql_fetch_array($result)) {
printf("<a href=\"index.php?display_mod_name=%s\">%s</a>\n",
$row["module_name"], $row["module_name"]);
}
?>
</div>
//module two
<?php
Print(" hello\n>");
?>
//module three
<?php
print("goodbye\n");
?>