Re: resetting mysql_fetch_row
| From: | Ignacio Vazquez-Abrams | Date: | Mon, 11 Dec 2000 20:09:15 +0000 |
| Subject: | Re: resetting mysql_fetch_row | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29746@lists.php.net to get a copy of this message | ||
On Mon, 11 Dec 2000, Thomas Deliduka wrote:
> 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?
>
mysql_data_seek()
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>