note 15688 deleted from function.reset by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 22:16:32 +0000 |
| Subject: | note 15688 deleted from function.reset by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134267@lists.php.net to get a copy of this message | ||
Note Submitter: tac at smokescreen dot org
----
Related to resetting an array is resetting a result set back to the beginning, so you can loop
through it again. To do that, use
mysql_data_seek($result, 0)
I use this often when debugging -- do a query, print it out, then loop through it a second time to
process. I'm adding this here under Reset because that's where I originally looked for
this functionality.