[PHP-DEV] PHP 4.0 Bug #4507 Updated: Object fetch outputs error when index is greater than # of records From: Bug Database (php-dev <email protected>)
Date: 07/14/00

ID: 4507
Updated by: jah
Reported By: dchapman <email protected>
Status: Closed
Bug Type: PostgreSQL related
Assigned To:
Comments:

Either put @ before pg_fetch_object() to suppress the warning, or use
pg_numrows() first to get the number of rows in the result set. Whether you use
a for or while loop is a personal preference, I doubt there's not much difference
in performance.

Full Bug description available at: http://bugs.php.net/?id=4507

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>