I found this in the manual user comments and it worked great mysql_data_seek($result,0);
Randy ----- Original Message ----- From: "Randy Johnson" <[EMAIL PROTECTED]> To: "Brian Dunning" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php