re:Totalling a variable in a while loop

From: Date: Fri, 18 Feb 2000 05:13:11 +0000
Subject: re:Totalling a variable in a while loop
Groups: php.version4 
Request: Send a blank email to php-version4+get-10429@lists.php.net to get a copy of this message
Hey all, I was wondering if any one had an algorithm that would total up a variable in a while loop, basically what I want to do is while im grabbing rows from a mysql table I want to total them up in a sort of grand total. I have tried lots of things with no success, I could however insert the value each loop back into the mysql table and then total that column ( some how ), but I would rather have an easier php only solution. Any help is always appreciated :-) One day I might be good enough to help someone else for a change eh! Joseph Blythe mailto:joe.blythe@binarylogic.com.au

« previous php.version4 (#10429) next »