hi guys me going to do some report in php with my sql this is my output that fetch by mysql
Receipt No. Regno Vaccine Name Amount 2015100015 98007 DHLP 115.00 2015100022 80002 DHLP 115.00 2015100014 98005 MEGAVAC 6 115.00 Grand Total 345.00
i need like this:
Receipt No. | Regno | Vaccine Name | Amount 2015100015 | 98007 | DHLP | 115.00 2015100022 | 80002 | DHLP | 115.00 | Total | 230.00 2015100014 | 98005 | MEGAVAC 6 | 115.00 2015100014 | 98005 | MEGAVAC 6 | 115.00 | Total | 230.00 Grand Total | 460.00 |
i need result like this group of data to report
GROUP BY
mysqltutorial.org/mysql-group-by.aspx andORDER BY
mysqltutorial.org/mysql-order-by andSUM()
mysqltutorial.org/mysql-sum – Fred -ii- 19 hours ago