I do something similar. I have a page that auto-refreshes, running through a list until it gets to the end.
It calls updateteam.php, with an id, which corresponds to the team. Because it's admin-side, I do it in javascript, using the setTimeout() method, but you could do it using the META refresh tag. Basically, you need PHP to write the id into the URL.
Elsewhere in the code, I'm checking for the highest ID of a team, then there's a test to stop the page from going past the end of the list.
The provisos on this are:
Thus:
<?php
if(!isset($id)
{
$id =1;
}
else
{
$nextpage = $id +1;
}
?>
<script language="javascript">
<?php if($nextpage <= $nteams) echo "setTimeout(\"window.location.href('adminupdateteams.php?rid=".$rid."&id=".$nextpage."')\", 1000)"; ?>
</script>
HTH! 🙂