math calculations query

From: Date: Thu, 26 Apr 2001 19:31:28 +0000
Subject: math calculations query
Groups: php.general 
Request: Send a blank email to php-general+get-50485@lists.php.net to get a copy of this message
hi all, i have a script which selects description, price and quantity from a mysql table. i have displayed the results on a page in the form of description, price, quantity but I was wondering how best to go about calculating a total total, ie. sum of quantitys multiplied by sum of prices. Any ideas? Many thanks, Sean.

« previous php.general (#50485) next »