[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;
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to