phpbar.de logo

Mailinglisten-Archive

reset the pointer of a mysql_result

reset the pointer of a mysql_result

Berthold mysql_(at)_lists.phpcenter.de
Mon, 15 Oct 2001 10:15:50 +0200


Hello!

Is there a way to reset the pointer of a mysql_result?

One simple example:

$result = mysql_query("select * from ...");
while ($obj = mysql_fetch_object($result)) echo "<br>#".$obj->id;

# And here's the problem!!!
reset($result); # e.g.
while ($obj = mysql_fetch_object($result)) echo "<br>#".$obj->user;



-- 
Berthold
(live long and prosper...)

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



php::bar PHP Wiki   -   Listenarchive