I have a set of pages with the following names....
- update1.php
- update2.php
- update3.php
- update4.php
- update5.php
- update6.php
- update7.php
At the moment, I have all 7 open on Chrome and refreshing every 30 minutes using the following code.
<body onload="setInterval('window.location.reload()', 1800000);">
I want to stick all these pages together so that I need only 1 page open. Is there a way to make a page refresh every 5 mins, but load a different section each time?
I was thinking of doing something like this, but it seems a bad way of doing it...
$refresh = $_GET['refresh'];
if (!isset($refresh)) { //update1 stuff; //reload page with &refresh=2 }
elseif ($refresh == 1) { //update1 stuff; //reload page with &refresh=2 }
elseif ($refresh == 2) { //update2 stuff; //reload page with &refresh=3 }
elseif etc.....
Any ideas?