September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool mysql_data_seek(mysql result result_handle, int row_number)
| result_handle | MySQL result handle returned by mysql_query() or mysql_db_query() |
| row_number | Target row offset |
Jumps to a specific row in a MySQL query result.
Returns:
TRUE on success; FALSE on error
Description:
mysql_data_seek() is used to move the internal pointer in a MySQL query result set to a specific row.
Subsequent calls to any of the functions that fetch a row of data from a query result handle will start at the specified offset. MySQL result handle row offsets start at 0.
Version:
PHP 3+, PHP 4+
See also:
To retrieve rows of data from a MySQL result handle:
mysql_fetch_array() mysql_fetch_assoc() mysql_fetch_object() mysql_fetch_row()
Example:
Read now
Unlock full access