mysql go to first row on record set

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
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

mysql go to first row on record set

Post by pelegk2 »

is it possible after i finish doing

Code: Select all

while($row=mysql_fetch_array($result));
to go back to the beggining of the record set and start all over again?
if yes then how?
and can i jump to the last record set?f yes then how?
thnaks in advance
peleg
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

[php_man]mysql_data_seek[/php_man]
Post Reply