DonChris, tekky is correct. It doesn't change pages per view, or at least doesn't seem to. I'll post my code at the very end.
tekky - i'm not sure how to go about what you suggest. In trying to think this out... I'd need to first query the DB, and get the timestamp of all fields (4, in this case). Take the last timestamp and display. Immediately insert a new timestamp upon page load.
But the main problem here I can see is, what happens if there happen to be 2 concerrent accesses of that page? They don't even have to be the same page, since once that page has a new timestamp, the next user will end up seeing say, page3 on his/her first view.
<?php
$maxindex=4; // supposed you have page1.php - page10.php
//include_next_page($maxindex,$myindex);
function include_next_page($maxindex,$myindex)
{
if( $myindex>=$maxindex || ! isset($myindex) )
{
$myindex=0;
}
$myindex++;
$path="front/";
$page=$path."page".$myindex.".php";
include ($page);
}
$szTitle = '';
$category = 0;
$scategory = 0;
include('display.php');
head('','0','0');
?>
<div align="center">
<img src="images/pixel_white.jpg" width="300" height="30"><br>
<? include_next_page($maxindex,$myindex);
/*displayAaPHPrandomPage($directoryName, $pageExtension)*/
?>