Seeking through results

DAL supports seeking through the resulting rows of a query. It provides the following functions for this matter:

If the driver supports the seeking through records you can seek with them. Below you'll find a more detail about the functions

nextRecord

Skips to the next record in the resultset.

boolean nextRecord(void);

As you can see it doesn't take arguments. It returns the success of the action.

prevRecord

Skips to the previous record in the resultset if possible.

boolean prevRecord(void);

Same as nextRecord, returns the success of the action.

seekRecord

Seeks to the record of your choice if possible.

boolean prevRecord($id);

$id specifies which record number to seek to. The function returns the success of the action.