Hello i need help to show data from row to column in php mysql the original data look like this :
date bank total
----------------------------------------------
2017-02-01 BCA 2500000
2017-02-01 CIMB 1500000
2017-02-01 UOB 3750000
2017-02-02 BCA 2100000
2017-02-02 CIMB 3600000
2017-02-02 UOB 2500000
and what I expected for the output like this one :
date BCA CIMB UOB TOTAL
----------------------------------------------------------------
2017-02-01 2500000 1500000 3750000 7750000
2017-02-02 2100000 3600000 2500000 8200000
so, if you have any suggestion to make a php mysql code, please help me, thanks