PHP 4.0 Bug #4507: Object fetch outputs error when index is greater than # of records
| From: | dchapman at houabg dot com | Date: | Thu, 18 May 2000 18:14:30 +0000 |
| Subject: | PHP 4.0 Bug #4507: Object fetch outputs error when index is greater than # of records | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18924@lists.php.net to get a copy of this message | ||
From: dchapman@houabg.com
Operating system: FreeBSD 4.0
PHP version: 4.0 Release Candidate 2
PHP Bug Type: PostgreSQL related
Bug description: Object fetch outputs error when index is greater than # of records
This code in the manual outputs warning/notification errors when $row is greater than the # of
records. Would a for loop be a better choice? I've had to turn off warning in the php.ini to
get let pages work correctly.
while ($data = pg_fetch_object ($qu, $row)):
14 echo $data->autor." (";
15 echo $data->jahr ."): ";
16 echo $data->titel."<BR>";
17 $row++;
18 endwhile; ?>