I have been dealing with something different but may this help you out so my coding was for I had a variable named $round now when this would be invoked the page has to refresh and it has to update so I think this would help you as you want to change your variable too so lets see if this helps you out and for this my code was
Code:
$round = (isset($_GET['round']))?$_GET['rou¬ nd']:1;
That works nicely for the initial setting of $round. I've then made my "Next" and "Previous" links a URL variable - like this:
Code:
$roundnext = $round +1;
$roundprevious = $round -1;
if ($roundprevious >= 1) {
echo '<a href="', $_SERVER['PHP_SELF'], '?round=' . $roundprevious . '">Previous Round</a> | ';
}
if ($roundnext <= 25) {
echo '<a href="', $_SERVER['PHP_SELF'], '?round=' . $roundnext . '">Next Round</a>';
}
Bookmarks