Page 1 of 1

Reset mysql_result offet

Posted: Sun Apr 10, 2005 8:28 pm
by ast3r3x
Is there a way to reset the offset in a mysql result without running the query again? I'd like to be able to reset it to the beginning after running mysql_fetch_row, but haven't been able to figure out how. I tried reset($whatever) but it didn't work...then again I figured it wouldn't.

Thanks in advance, this is driving me crazy, and it's not even because I need to do it, but because I want to.

Posted: Sun Apr 10, 2005 8:33 pm
by SystemWisdom
Example:

Code: Select all

mysql_data_seek( $result_set, 0 );
Reference:
mysql_data_seek()

I hope that helps! :)

Posted: Sun Apr 10, 2005 8:54 pm
by ast3r3x
*sigh*

Thanks man :)

You know I was looking around, but by the name of that function, I thought it in no way would have anything to do with what I wanted. How ironically frustrating.