RE: Re: [PHP] Addin a column of numbers not using MySQL
| From: | Jay Blanchard | Date: | Mon, 04 Aug 2003 18:16:22 +0000 |
| Subject: | RE: Re: [PHP] Addin a column of numbers not using MySQL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-158174@lists.php.net to get a copy of this message | ||
[snip]
while ($row = mysql_fetch_array($result_2)) {
$paid = $row['paid'];
}
----CODE End-----------------
What I want to do from here is add up all the 'paid' figures.
[/snip]
while ($row = mysql_fetch_array($result_2)) {
$paid = $row['paid'];
$total = $total + $paid;
}