PHP mysqli_data_seek() Function

PHP mysqli_data_seek() function moves the internal row pointer of the MySQL result set associated with the specified result identifier to point to the specified row number.

Syntax

mysqli_data_seek() Function Parameter

ParameterDescription
result :Required parameter. The result set comes from a call to mysql_query(),mysqli_store_result() or mysqli_use_result().
rowno :Required parameter. The rowno should be a value in the range from 0 to mysql_num_rows() - 1.

mysqli_data_seek() Function Return Value

Return Values :Returns TRUE on success or FALSE on failure.

mysqli_data_seek() Function Example