20.4.6 mysql_data_seek()

void mysql_data_seek(MYSQL_RES *result, unsigned int offset)

20.4.6.1 Description

Seeks to an arbitrary row in a query result set. This requires that the result set structure contains the entire result of the query, so mysql_data_seek() may be used in conjunction only with mysql_store_result(), not with mysql_use_result().

The offset should be a value in the range from 0 to mysql_num_rows(result)-1.

20.4.6.2 Return values

None.

20.4.6.3 Errors

None.