. */ /** * Note to anyone feeling the need to edit this file... * You MUST declare $db as global inside your functions in order access MySQL from here. */ function ListNavigation(){ global $db; $result = $db->Query("SELECT `nav_id`, `title`, `weight` FROM `bayonet_navigation` ORDER BY `weight`"); while(($row = $db->Fetch($result))!=false) { $data[] = $row; } echo "|0|Home|0|
"; foreach($data as $nav){ echo "|{$nav['nav_id']}|{$nav['title']}|{$nav['weight']}|
"; } } ?>