note 45774 added to function.pg-result-seek
| From: | andrew-php dot net at andrew dot net dot au | Date: | Sat, 18 Sep 2004 03:01:34 +0000 |
| Subject: | note 45774 added to function.pg-result-seek | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76900@lists.php.net to get a copy of this message | ||
Ah, this is a handy feature for resetting the record index, for example, if you're used
pg_fetch_{row,array,assoc} to iterate over the result set, and you want to do it again later on,
without reexecuting your query. Something like:
<?php pg_result_seek($result, 0); ?>
will allow you to iterate over the result set all over again...
----
Manual Page -- http://www.php.net/manual/en/function.pg-result-seek.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45774
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45774&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45774&report=yes
Search -- http://master.php.net/manage/user-notes.php