resetting mysql_fetch_row
| From: | Thomas Deliduka | Date: | Mon, 11 Dec 2000 20:07:38 +0000 |
| Subject: | resetting mysql_fetch_row | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-29745@lists.php.net to get a copy of this message | ||
If I use mysql_fetch_row or _array like this:
while ($row = mysql_fetch_row($queriedtable)) {
// out put here
}
and want to do it again later usign the same code it 'pointer' so to speak
will be at the end of the database. How can I reset that pointer to the top
so I can then loop through the data a second time?
I looked in the manual and couldn't find anything. Do I have to free the
result and re-query the table?
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/