I have a data set generated with CodeIgniter using MySQL. I need to get Total Delivered Qty in the view page. For that I used the following code.
<?php $delivered_qty_total += $row->quantity; endforeach; ?>
<?php endif; ?>
But it did not give the accurate total of the Delivered Qty. I am passing data with GROUP_CONCAT
with SEPARATOR "<br />"
.When I am using tbl_order_products.quantity
instead of GROUP_CONCAT
it give me the accurate total. but I need it with GROUP_CONCAT
.
'GROUP_CONCAT(tbl_order_products.quantity SEPARATOR "<br />" ) as quantity ',