RE: [PHP] Stepping through an array more than once
| From: | Matt Schroebel | Date: | Wed, 28 Aug 2002 12:26:07 +0000 |
| Subject: | RE: [PHP] Stepping through an array more than once | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114355@lists.php.net to get a copy of this message | ||
> From: Petre Agenbag [mailto:internet@vsa.co.za]
> Sent: Wednesday, August 28, 2002 8:17 AM
> To: Petre Agenbag
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Stepping through an array more than once
>
>
> Actually, it's not accurate for me to say "stepping through an array
> more than once", as I want to step through the database (
> $result) more
> than once, without having to make connections to the db again.
> Can this be done?
Yes, see mysql_data_seek()
http://www.php.net/manual/en/function.mysql-data-seek.php