Page 1 of 1

mysql_reset_array()?

Posted: Tue Dec 24, 2002 2:41 am
by EricS
Is there any way to reset the mysql results back to the beginning so I can run through the array again with mysql_fetch_array? I can't seem to find a mysql reset anything.

Thanks in advance.

Posted: Tue Dec 24, 2002 10:37 am
by hob_goblin
You're probably going to run another query, or work on your query to get it all in one array...

Posted: Tue Dec 24, 2002 10:40 am
by mydimension
re-querying the DB is a very inefficient way to do this. that is why the good people of PHP made the mysql_data_seek() function: http://www.php.net/manual/en/function.m ... a-seek.php