Re: array question
| From: | Randy Johnson | Date: | Fri, 30 May 2003 02:50:40 +0000 |
| Subject: | Re: array question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149516@lists.php.net to get a copy of this message | ||
I found this in the manual user comments and it worked great
mysql_data_seek($result,0);
Randy
----- Original Message -----
From: "Randy Johnson" <php@money2020.com>
To: "Brian Dunning" <brian@briandunning.com>; <php-general@lists.php.net>
Sent: Thursday, May 29, 2003 10:14 PM
Subject: [PHP] array question
> How do I access the data in $query_data after I go through the while loop,
> here is an example
>
> $result=mysql_query($query,$link);
> while ($query_data=mysql_fetch_array($result) )
> {
> $var1=$query_data["var1"];
> $var1=$query_data["var1"];
> }
>
> after the while is done, How do I access the data in query data again .
I
> perform calculations the first time and the second time I need to display
> the rows on the screen.
>
>
> Randy
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>