Re: Re: Stepping through an array more than once (offlist)
| From: | Petre Agenbag | Date: | Thu, 29 Aug 2002 07:06:17 +0000 |
| Subject: | Re: Re: Stepping through an array more than once (offlist) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114472@lists.php.net to get a copy of this message | ||
Jason
Thanks
the mysql_data_seek() works.
With Justin's help, I used the mysql_data_seek() to reset the $result
"matrix" to 0, and re-issued the same while statement.
It now produces the desired output.
Thanks.
On Thu, 2002-08-29 at 08:46, Jason Wong wrote:
> On Thursday 29 August 2002 14:16, Petre Agenbag wrote:
> > Hi Justin
> > OK, a quick feedback on your previous suggestion:
> >
> > I tried to unset the $myrow_it, but it still didn't produce any output.
> > The only way I could get it to work was with the same method you
> > suggested in this e-mail.
> > I had to create 2 new vars ( which basically boils down to 2 more
> > SQL's).
>
> [snip]
>
> I've said it once already:
>
> mysql_data_seek()
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> Heller's Law:
> The first myth of management is that it exists.
>
> Johnson's Corollary:
> Nobody really knows what is going on anywhere within the
> organization.
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>