Re: mysql rereading result set (fetch_assoc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux