Re: Bug #1435 Updated: pg_fetch_row does not iterate.

From: Date: Fri, 28 May 1999 14:56:54 +0000
Subject: Re: Bug #1435 Updated: pg_fetch_row does not iterate.
Groups: php.dev 
Request: Send a blank email to php-dev+get-6157@lists.php.net to get a copy of this message
Hi: Ok... This is not an operational problem, this is a documentation error. From www.php.net/manual/function.pg-fetch-row.php3: Returns: An array that corresponds to the fetched row, or false if there are no more rows. pg_fetch_row() fetches one row of data from the result associated with the specified result identifier. The row is returned as an array. Each result column is stored in an array offset, starting at offset 0. Subsequent call to pg_fetch_row() would return the next row in the result set, or false if there ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~` are no more rows. ~~~~~~~~~~~~~~ The underlined statement is true for odbc_fetch_row but it is not true for pg-fetch-row. Yes, I'm aware that you can get the number of rows and iterate this. However the previous statement in the documentation for this function is not accurate or at least it gives the impression that you can iterate. Luis Anaya -----Original Message----- From: Bug Database <php-dev@lists.php.net> To: papo@dcentral.com <papo@dcentral.com> Date: Friday, May 28, 1999 8:54 AM Subject: [PHP-DEV] Bug #1435 Updated: pg_fetch_row does not iterate. >ID: 1435 >Updated by: sas >Reported By: papo@dcentral.com >Status: Closed >Bug Type: Documentation problem >Assigned To: >Comments: > >Where is the problem? Use pg_num_rows to determine the number of returned rows. See http://www.php.net/manual/ref.pgsql.html for more information.. > >Full Bug description available at: http://bugs.php.net/?id=1435 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#6157) next »