mysql_reset_array()?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
EricS
Forum Contributor
Posts: 183
Joined: Thu Jul 11, 2002 12:02 am
Location: Atlanta, Ga

mysql_reset_array()?

Post 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.
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

You're probably going to run another query, or work on your query to get it all in one array...
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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
Post Reply