I think this is normal PHP behavior. The $result variable is considered an
"array" by the MySQL functions, so every time you call mysql_fetch_, you
remove an element from the "array" (I don't think it's really an array but
it's the best comparison I could find).
My solution would be to create
Hi Matt,
in your code unfortunately it's not clear how you are
outputting data from an array, so I'm not sure... but
try reset($rows) function - it will set internal
pointer of array to first element... Consult manual
for array functions, specially for reset().
HTH, let me know
Piotr
--- Matt
After I output data from a query with a for() loop, It seems like I
cannot reuse the array from the query any more. Do I have to requery the
database for the same info so that I can add up the database columns?
OUTPUT DATA HERE
After this has run, when I try to run ano