php - Sum of data in multiple rows that echo with GROUP_CONCAT in CodeIgniter -

i have data set generated codeigniter using mysql. need total delivered qty in view page. used following code.
<?php $delivered_qty_total += $row->quantity; endforeach; ?> <?php endif; ?> but did not give accurate total of delivered qty. passing data group_concat separator "<br />".when using tbl_order_products.quantity instead of group_concat give me accurate total. need group_concat.
'group_concat(tbl_order_products.quantity separator "<br />" ) quantity ',
Comments
Post a Comment