"; $sql="SELECT * FROM nieuws where categorie_id='".$_GET["categorie"]."'"; $query = mysql_query($sql); $totaal = mysql_num_rows($query); if(!isset($_GET['page'])) { $_GET['page'] = 0; $vorige = "<< Vorige ".$pp.""; } $a = $_GET['page'] * $pp; $b = $a + $pp - $_GET['page'] * $pp; $pages = $totaal / $pp; $pageplus = $_GET['page'] + 1; $pagemin = $_GET['page'] - 1; if($_GET['page'] + 1 < $pages) { $volgende = "Volgende ".$pp." >>"; } if($page - 1 < $pages AND $page) { $vorige = "<< Vorige ".$pp.""; } if($pageplus > $pages OR $pageplus=="$pages") { $volgende = "Volgende ".$pp." >>"; } $query = mysql_query("SELECT * FROM nieuws where categorie_id='".$_GET["categorie"]."' ORDER BY id DESC LIMIT $a,$b"); $result = mysql_num_rows($query); if(!$result) { echo "Geen berichten geplaatst..."; } else { while($object = mysql_fetch_object($query)) { ?>
onderwerp ?>
bericht); } else { echo $object->bericht; } ?>

".$vorige." ][ Admin Login ][ ".$volgende.""; } ?>