php man page for pg_result_seek

Query: pg_result_seek

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

PG_RESULT_SEEK(3)														 PG_RESULT_SEEK(3)

pg_result_seek - Set internal row offset in result resource

SYNOPSIS
bool pg_result_seek (resource $result, int $offset)
DESCRIPTION
pg_result_seek(3) sets the internal row offset in a result resource.
PARAMETERS
o $result - PostgreSQL query result resource, returned by pg_query(3), pg_query_params(3) or pg_execute(3) (among others). o $offset - Row to move the internal offset to in the $result resource. Rows are numbered starting from zero.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 pg_result_seek(3) example <?php // Connect to the database $conn = pg_pconnect("dbname=publisher"); // Execute a query $result = pg_query($conn, "SELECT author, email FROM authors"); // Seek to the 3rd row (assuming there are 3 rows) pg_result_seek($result, 2); // Fetch the 3rd row $row = pg_fetch_row($result); ?>
SEE ALSO
pg_fetch_row(3), pg_fetch_assoc(3), pg_fetch_array(3), pg_fetch_object(3), pg_fetch_result(3). PHP Documentation Group PG_RESULT_SEEK(3)
Related Man Pages
pg_fetch_all_columns(3) - php
pg_fetch_object(3) - php
pg_free_result(3) - php
pg_num_rows(3) - php
pg_set_client_encoding(3) - php
Similar Topics in the Unix Linux Community
Replace value in files
To find the Row number
Select rows where the 3rd column value is over xx
Updated files information
Read values in each col starting 3rd row.Print occurrence value.