phpbar.de logo

Mailinglisten-Archive

reset the pointer of a mysql_result

reset the pointer of a mysql_result

Alexander Skwar mysql_(at)_lists.phpcenter.de
Mon, 15 Oct 2001 10:42:35 +0200


Zitat von Berthold <b.tenhumberg_(at)_gmx.de>:

> # And here's the problem!!!
> reset($result); # e.g.

Hmm, maybe do a mysql_data_seek
http://www.php.net/manual/en/function.mysql-data-seek.php and set the
row number to 0.

But then again, performancewise wouldn't it be better to loop just once
on the result set and if you really have to do a 2nd loop, use the data
you already fetched and saved in one of your variables?  How hard on the
mysql server is a mysql_fetch_object($result) compared to using local
variables?
Alexander Skwar
-- 
How to quote:  http://learn.to/quote (de) http://quote.6x.to (en)
Homepage:      http://www.digitalprojects.com | http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---
!!NEU!!
Fragen und Antworten zu MySQL und dieser Liste unter
-->>  http://www.4t2.com/mysql 



php::bar PHP Wiki   -   Listenarchive