RE: [PHP] resetting mysql_fetch_row
| From: | Robert Covell | Date: | Mon, 11 Dec 2000 20:07:54 +0000 |
| Subject: | RE: [PHP] resetting mysql_fetch_row | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29747@lists.php.net to get a copy of this message | ||
To reset use:
mysql_data_seek($result,0);
Sincerely,
Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: rcovell@rolet.com
Phone: 816.210.7145
Fax: 816.753.1952
-----Original Message-----
From: Thomas Deliduka [mailto:thomas@neweve.com]
Sent: Monday, December 11, 2000 2:08 PM
To: PHP List
Subject: [PHP] resetting mysql_fetch_row
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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net