Re: mysql rereading result set (fetch_assoc)
| From: | Chris | Date: | Wed, 10 Jan 2007 01:24:29 +0000 |
| Subject: | Re: mysql rereading result set (fetch_assoc) | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42920@lists.php.net to get a copy of this message | ||
christine wrote:
Hi, I would ask which way is more efficient and save time? Save each row to array or mysql_data_seek(0) ?Probably mysql_data_seek(0). That just resets the mysql pointer back to the start and so it doesn't re-run the query or anything like that and doesn't take up any extra memory. -- Postgresql & php tutorials http://www.designmagick.com/