Hi, Store the sum into a variable (inside the loop) and print.I hope this will work. Binoy ______________ ______________ ______________ ______________ Sent via the WebMail system at softwareassociates.co.uk --- Scanned by MessageExchange.net (07:10:44 SPITFIRE) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php