note 32298 added to function.pg-fetch-row
| From: | Matthew at rack1 dot php dot net | Date: | Fri, 23 May 2003 02:29:53 +0000 |
| Subject: | note 32298 added to function.pg-fetch-row | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48855@lists.php.net to get a copy of this message | ||
Note that the internal row counter is incremented BEFORE the row is retrieved. This causes an off by
one error if you try to do:
pg_result_seek($resid,0);
pg_fetch_row($resid);
you will get back the SECOND result not the FIRST.
----
Manual Page -- http://www.php.net/manual/en/function.pg-fetch-row.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32298
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32298&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32298&report=yes