Iterating through resultset more than once?
| From: | john mclaughlin | Date: | Wed, 12 Sep 2007 10:45:47 +0000 |
| Subject: | Iterating through resultset more than once? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27906@lists.php.net to get a copy of this message | ||
Hi,
wondered if you could help with this:
Using DB package I get a resultset from a query and iterate thru it.
Only problem is, how do I reset the resultset to point to its first index so I can iterate thru
again.
The DB.result class doesn't seem to have any relevant methods.
Weird. At present I am having to needlessly rerun the query and get a fresh resultset which is
incredibly wasteful, obviously.
John McLaughlin
Black Ant Computing Ltd
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.