0 ORDER BY nummer"); while($row = mysql_fetch_array($menu_select)){ $gpag = strtolower(str_replace(" ","-",str_replace("&","-",$row['naam']))); if(($p == $row['id'] && $type == "p") || ($pp == $row['id'] && $type = "s")){ echo "

".$row['naam']."
"; $thisp = $row['id']; $smenu_select = mysql_query("SELECT * FROM subpaginas WHERE nummer > 0 AND pagina = '$thisp' ORDER BY nummer"); if(mysql_num_rows($smenu_select) > 0){ $mteller = 1; while($srow = mysql_fetch_array($smenu_select)){ if($mteller == 1){ $mteller++; } else { echo "
"; } //$gspag = strtolower(str_replace(" ","-",$srow['naam'])); $gspag = strtolower(str_replace(" ","-",str_replace("&","-",$srow['naam']))); if($type == "s" && $srow['id'] == $p){ echo "- ".$srow['naam'].""; } else { echo "- ".$srow['naam'].""; } } } echo "

"; } else { echo "

".$row['naam']."

"; } } ?>
".$row['naam']."

"; echo "

".stripslashes($row['tekst'])."

";; if(file_exists($row['url'])){ echo "

"; include($row['url']); echo "

"; } } ?>