mysql_data_seek

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:

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.