You can simply add up the column total beforehand.  - no need to loop and
add them up etc.

-----Original Message-----
From: Paul Campano [mailto:[EMAIL PROTECTED]
Sent: 30 June 2003 16:55
To: CF-Talk
Subject: CFLOOP question


I am looping through items in a shopping cart and need to add up the price
of each item to get a total price.  How would I do this?  I thought about
setting a variable "price" per iteration through the loop, but that just
gets overwritten each time.  Thanks.

Paul Campano


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to