next, previous row.... my code
Posted: Wed Sep 10, 2008 4:24 pm
I have two button`s, whitch switch row id: next, previous... But i dont know, how to disable the next and previous button, to stop counting up and down...
here is my code:
for example: min:3 and max:6
$up=$_GET['new']+1;
$down=$_GET['new']-1;
if($max!=$_GET['new']){
$next='?new='.$up.'';
}
else{
$next='#';
}
if($min!=$_GET['new']){
$prev='?new='.$down.'';
}
else{
$prev='#';
}
<a href="<?php echo $prev; ?>">Previous</a> <a href="<?php echo $next; ?>">Next</a>
with this script i can count: from -n tp +n, that script dont stop anything...
Please help... Previously big, big thanks!
or maybe there is some very simple scripts who do exatctly the same thing, but funkciona!
here is my code:
for example: min:3 and max:6
$up=$_GET['new']+1;
$down=$_GET['new']-1;
if($max!=$_GET['new']){
$next='?new='.$up.'';
}
else{
$next='#';
}
if($min!=$_GET['new']){
$prev='?new='.$down.'';
}
else{
$prev='#';
}
<a href="<?php echo $prev; ?>">Previous</a> <a href="<?php echo $next; ?>">Next</a>
with this script i can count: from -n tp +n, that script dont stop anything...
Please help... Previously big, big thanks!
or maybe there is some very simple scripts who do exatctly the same thing, but funkciona!