|
sqlanywhere_data_seek
Prototype
bool sqlanywhere_data_seek( resource result_identifier, int row_num
)
Description
Positions the cursor on row row_num on the result_identifier that was opened using sqlanywhere_query.
Parameters
result_identifier
The result identifier returned by a sqlanywhere_query function.
row_num An integer that represents the
new position of the cursor within the
result_identifier. For example, specify 0 to move the cursor to the first row of
the result set or 5 to move it to the sixth row. Negative numbers represent
rows relative to the end of the result set. For example, -1 moves the cursor
to the last row in the result set and -2 moves it to the second-last row.
Returns
True on success or false on error.
Example
This example shows how to seek to the 6th record in a result set.
sqlanywhere_data_seek( $result, 5 );
Related functions
sqlanywhere_fetch_field
sqlanywhere_fetch_array
sqlanywhere_fetch_row
sqlanywhere_fetch_object
sqlanywhere_query
|