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.. 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? 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
Archived
This topic is now archived and is closed to further replies.