For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > September 2007 > Iterating through resultset more than once?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Iterating through resultset more than once?
john mclaughlin

2007-09-12, 8:02 am

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com