id; } //Bezoeker erbij tellen voor de huidige pagina include('cms/statistieken/teller_page.php'); $query_menuitems = mysql_query("SELECT * FROM `$tableMenuitems` WHERE id = '$id'") or die(mysql_error()); $obj_menuitems = mysql_fetch_object($query_menuitems); $page_id = $obj_menuitems->page_id; $module_id = $obj_menuitems->module_id; if($page_id != '0'){ //Als het een pagina is $query = mysql_query("SELECT * FROM `$tablePages` WHERE id = '$page_id'") or die(mysql_error()); $obj_page = mysql_fetch_object($query); $titelPage = $obj_page->page; $content = $obj_page->html; }else{ //Als het een module is $query_modules = mysql_query("SELECT * FROM `$tableModOverzicht` WHERE id = '$module_id'") or die(mysql_error()); $obj_modules = mysql_fetch_object($query_modules); $object_id = $obj_menuitems->object_id; include("cms/modules/".$obj_modules->paginatitel_generator); $titelPage = $titel2; include("cms/modules/".$obj_modules->content_generator); $content = $content_gen; } if($id == "" && $content == ""){ //Als geen pagina gevonden is -> homepagina laten zien: $query_menu = mysql_query("SELECT * FROM `$tableMenuitems` WHERE layer = '0' ORDER BY `position` ASC") or die(mysql_error()); $obj_menu = mysql_fetch_object($query_menu); echo ""; } //Plaatje in header $headernr = rand(1,4); //Plaatje in footer $footernr = rand(1,3); //Random subtitel uit database halen $query_titels = mysql_query("SELECT * FROM `modules_titels` ORDER BY RAND()") or die(mysql_error()); $obj_titels = mysql_fetch_object($query_titels); $subtitel = "link."\">".$obj_titels->tekst.""; //Menu uit database halen $query_menu = mysql_query("SELECT * FROM `$tableMenuitems` WHERE layer = '0' AND active = '0' ORDER BY `position` DESC") or die(mysql_error()); ?> What makes the dutch tick? -

What makes the Dutch tick?