Re: Resetting result sets after looping
| From: | John Holmes | Date: | Thu, 30 Sep 2004 01:42:39 +0000 |
| Subject: | Re: Resetting result sets after looping | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198234@lists.php.net to get a copy of this message | ||
Steve Douville wrote:
After cycling through a result set using mysql_fetch_assoc, I need to cycle through the result set again. However, it's acting like it's maybe already at the end of the result set and can't be looped again. I've looked for something simple, like a result resetter, but I seem to be missing something.Yep, you are: http://us2.php.net/manual/en/function.mysql-data-seek.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com