mysql_data_seek() Function in PHP
What is mysql_data_seek function in PHP?
How does mysql_data_seek() works?
function moves internal result pointer.Syntax
bool mysql_data_seek ( resource result_identifier, int row_number)
Returns TRUE on success or FALSE on failure.
mysql_data_seek() is used to move the internal pointer of resultset returned by mysql_query() to a specific row.
mysql_data_seek() allows you to randomly access the results of a query by seeking (or moving) the internal record pointer of result set to the specified position.The offset starts from '0', if you specify offset as '5', pointer will be moved to fifth row of the result set.Subsequent calls to mysql_fetch_row()