Here’s my php code
<?php
$pageOK = array('page0' => 'page0.php',
'page1' => 'content1.php',
'page2' => 'anotherContent2.php',
'page3' => 'anotherpagewithotherlink.php',
'page4' => 'blablabla.php',
'page5' => 'bleh.php',
'page6' => 'foo.php',
'page7' => 'bar.php');
if ( (isset($_GET['projet'])) && (isset($pageOK[$_GET['projet']])) ) {
include($pageOK[$_GET['projet']]);
}
?>
This will make in sort that “index.php?project=page0” will load in the url with mod_rewrite enable (http://www.example.com/page0/)
Note that the url is different. My question is how I can make a Prev / Next link to go to the next or previous array and if it’s the first hide the Prev link and for the last hide the Next link.
$nextand$prevholds the array keys.