turpentyne Posted February 18, 2012 Share Posted February 18, 2012 I'm trying to figure out how to add up all the $qty_total that exist into an overall total. I hope I'm not oversimplifying my example.. I have this: $qty_total = $qty_insert * $d['workshop_price']; $qty_insert loops several times and I want: $overall_total = $qty_total + qty_total + ...however many.. Quote Link to comment https://forums.phpfreaks.com/topic/257271-add-up-looped-sums-into-total/ Share on other sites More sharing options...
litebearer Posted February 18, 2012 Share Posted February 18, 2012 Is "$d['workshop_price']" part of a db query result set? Quote Link to comment https://forums.phpfreaks.com/topic/257271-add-up-looped-sums-into-total/#findComment-1318747 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.