num_rows() > 0) { if($db->next_record()) { $page = $db->f("PageName"); $pageclass = $db->f("PageClass"); $revision = $db->f("PageRevisionID"); } } } // Set a default page if we couldn't find the page. if(!isset($page)) $page = "intro"; // Set a default language if no language was specified. if(!isset($lang)) $lang = "nl"; switch($page) { case "intro": include("intro.php"); break; default: include("content.php"); break; } ?>