Page 1 of 1

simple summation problem

Posted: Wed Jan 21, 2004 3:40 am
by jolan_lars
hi all, i need help on this:

I have a loop:

while (condition)
{
***** //other stuffs in here
$variable= ****; //some formulas in here
}

Everytime the loop runs, $variable produces different values. After the loop finishes, I need the summation of all the different values produced.

Help. :cry:

Jolan

Posted: Wed Jan 21, 2004 5:00 am
by markl999
$variable += ****; //some formulas in here

Posted: Wed Jan 21, 2004 5:13 am
by jolan_lars
awesome! Thanks a lot.

Jolan