Pass the current row count as a variable to the query.
At each result row add
<? $goin_back = $row_num - 1;
$goin_ahead = $row_num + 1; ?>
<a href="?row_num=<? echo $goin_back;?>">Back</a> ||
<a href="?row_num=<? echo $goin_ahead;?>">Forward</a>
Then your query does a:
SELECT * FROM table LIMIT $row_num , 1
Make sense?
Reputation Points: 15
Solved Threads: 0
Junior Poster in Training
Offline 50 posts
since Mar 2005