Hi NogDog,
Thanks for your reply.
I think I am getting my head around this. So far I have the following:
SELECT master_ecn_t1,
GROUP_CONCAT(master_ecn_t2,',',master_ecn_t3),
SUM(final_sales_value_t2 + final_sales_value_t3),
SUM(final_vat_value_t2 + final_vat_value_t3),
SUM(final_net_value_t2 + final_net_value_t3),
SUM(commission_due_t2 + commission_due_t3),
paid
FROM sales_commission
WHERE master_ecn_t1 = 4ecn
GROUP BY tier
To display the result of the GROUP_CONCAT I have
echo $row_promotion_ecn_summary['GROUP_CONCAT(master_ecn_t2,',',master_ecn_t3)'];
When I runs the script I am getting the following error:
Parse error: syntax error, unexpected ',', expecting ']'
What I am trying to do is to display the content of the GROUP_CONCAT with the line break "<br /> betwen each data part.
Can you see where I am goig wrong.
Thanks for you help yet again.
<?php ?>