[snip]
this has been bugging me for some time now.
I want to do a mysql select
then using php
while ($a_row = mysql_fetch_array($result))
{
do something to get a small portion of the data
}
and that works fine. Then later I need to access $result as a complete
array
again. Is there a way I can keep $result array intact and still take a
couple values out beforehand. I can get it to work, by doing the select
twice, but thats less than ideal.
[/snip]
More of a PHP question, but use reset($result); instead of a new query
http://www.php.net/reset
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]