The sql_seek() function positions a selection resource originating from a sql_select() at the designated row number.
It accepts 4 parameters:
-
$res, the resource, -
$row_number, the row number, -
$serveur, -
$option.
It is used as shown below:
if ($res = sql_select('column', 'table')) {
if (sql_seek($res, 9)) { // go to number 10
$r = sql_fetch($res);
// $r['column'] of the 10th result
}
// return back to the start
sql_seek($res, 0);
}