Re: mysql rereading result set (fetch_assoc)
| From: | Niel Archer | Date: | Wed, 10 Jan 2007 01:29:28 +0000 |
| Subject: | Re: mysql rereading result set (fetch_assoc) | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42921@lists.php.net to get a copy of this message | ||
Hi
> Hi, I would ask which way is more efficient and save time? Save each row to
> array or mysql_data_seek(0) ?
That totally depends on which resources are more valuable to you.
The array will likely use more memory but be faster to process.
While mysql_data_seek(0) would probably use no additional memory but
be slower. It also might require you to duplicate code.
Niel