Re: FW: [PHP] resetting record pointer
| From: | Daniel Convissor | Date: | Fri, 04 Aug 2000 16:51:09 +0000 |
| Subject: | Re: FW: [PHP] resetting record pointer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10167@lists.php.net to get a copy of this message | ||
Heya:
"Joe Sheble a.k.a. Wizaerd" wrote:
>
> yeah, that does work in that instance, thanx...
>
> but I'm also assuming that there is no way to reset the current record to
> the first record?
You know what they say about assuming. :)
I generally hack around for a while before asking other people. As
Kevin mentioned, the mysql_data_seek() function moves the pointer around.
Hmm, I want to move the pointer to the beginning of the record set. What's
the
beginning of the set? 0 or 1? 0 is often used in PHP as the first element
in arrays, so let's try "mysql_data_seek($RecordSet,0);" Voila!
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409