Assuming your sorted rows are in an array, you can use the next() and
prev() functions to move the array pointer forwards and backwards
respectively.

So say your sorted array is in $array, you can do something like this:

$copy1 = $array;
$copy2 = $array;

$next_value = next($copy1);
$prev_value = prev($copy2);

--
Rajesh

whoisquilty wrote:

> I've got a sorted found set of rows. Is there a command to go to the
> next row in the sorted set?
> 
> I'm trying to create a slide show of photos. They are entered in a
> table and sorted by a sortno column. And I'd like to create "Next"
> and "Previous" buttons.

Reply via email to