received_amount | updated_at
----------------------------
4000 | 2020-11-02
2000 | 2020-11-03
1000 | 2020-12-02
1000 | 2020-12-04
3000 | 2021-01-02
2000 | 2020-01-02
This is my database table named "payment" structured and data on it.
Now I want to display something like below mentioned table data in my php web page when user select the year from calendar (I've use Zebra date picker for this). Zebra date picker gives the year.
In this scenario user select the year 2020 and it's should show the values as below.
Year | Month | Monthly Total
----------------------------
2020 | November| 6000
2020 | December| 2000