note 38402 rejected from function.pg-fetch-array by sp
| From: | sp@php.net | Date: | Fri, 19 Dec 2003 12:41:35 +0000 |
| Subject: | note 38402 rejected from function.pg-fetch-array by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62228@lists.php.net to get a copy of this message | ||
Note Submitter: mk@musiker.nu
----
there seems to be a bug in php 4.1.2.
<?php
while($row = pg_fetch_array($result)) {
echo $row[...];
}
?>
works allright, but this:
<?php
while($row = pg_fetch_array($result, NULL, PGSQL_ASSOC)) {
echo $row[...];
}
?>
keeps on returning the first row again and again in an eternal loop.