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; ?>
Back ||
Forward
Then your query does a:
SELECT * FROM table LIMIT $row_num , 1
Make sense?
barnamos
Junior Poster in Training
50 posts since Mar 2005
Reputation Points: 15
Solved Threads: 0