Home > PHP > Function > > ingres_result_seek()

ingres_result_seek()

ingres_result_seek - Set the row position before fetching data

Syntax

boolean ingres_result_seek (resource $result, integer $position)

Arguments

  • result - The result identifier for a query
  • position - The row to position the cursor on. If ingres.array_index_startis set to 0, then the first row is 0, else it is 1

Description

This function is used to position the cursor associated with the result resource before issuing a fetch. If ingres.array_index_startis set to 0 then the first row is 0 else it is 1. ingres_result_seek() can be used only with queries that make use of scrollable cursors. It cannot be used with ingres_unbuffered_query().

Version

PHP PECL ingres >= 2.1.0

Return value

Returns TRUE on success or FALSE on failure.