You should read the rest of this thread Joel. On Wed, Oct 20, 2010 at 4:46 PM, Joel Black <j...@blackbeardesign.com>wrote:
> > You can query the database to extract the records you want, then query the > query for a total. This example actually gets the total if there are > multiple quantity for each item > > <!--- get the totals ---> > <cfquery dbtype="query" name="total"> > SELECT SUM(PriceSold*Quantity) AS TheTotal > FROM cart > </cfquery> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338406 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm