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 resourceSYNOPSISbool pg_result_seek (resource $result, int $offset)DESCRIPTIONpg_result_seek(3) sets the internal row offset in a result resource.PARAMETERSo $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 VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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 ALSOpg_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_result(3) - php |
mssql_fetch_row(3) - php |
pg_fetch_all(3) - php |
pg_fetch_all_columns(3) - php |
pg_fetch_array(3) - php |
Similar Topics in the Unix Linux Community |
---|
Implementing Row-Level Security in Java Applications |
Merging of rows |
Replace value in files |
Shell Script: Traverse Database Table Row by Row |
Updated files information |