Home > PHP > Function > Mssql > mssql_data_seek()

mssql_data_seek()

mssql_data_seek - Moves internal row pointer

Syntax

bool mssql_data_seek (resource $result_identifier, int $row_number)

Arguments

  • result_identifier - The result resource that is being evaluated.
  • row_number - The desired row number of the new result pointer.

Description

mssql_data_seek() moves the internal row pointer of the MS SQL result associated with the specified result identifier to point to the specified row number, first row being number 0. The next call to mssql_fetch_row() would return that row.

Version

PHP 4, 5, PECL odbtp >= 1.1.1

Return value

Returns TRUE on success or FALSE on failure.