Re: mysql rereading result set (fetch_assoc)
| From: | Niel Archer | Date: | Sat, 06 Jan 2007 21:12:54 +0000 |
| Subject: | Re: mysql rereading result set (fetch_assoc) | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42894@lists.php.net to get a copy of this message | ||
Hi
> I'm running thru a result set using fetch_assoc. Now I want to run through
> it again.
>
> How?
Save each row into an array first time around, then reset the array
pointer to the beginning, would be one way.
Or assuming you're using the original MySQL functions, use
mysql_data_seek(0) to reset the internal result pointer, as one minute
scanning the function list in the documentation would tell you
Niel