I have one database table as following:
id|start_date|end_date|sec
1|2018-08-01|2018-08-03|2500
2|2018-08-02|2018-08-13|100
3|2018-08-01|2018-08-05|500
So I want to display the report date wise so that user can know how many seconds available in specific days.
For example, I need below things:
Date /Day            total
2018-08-01  (2500+500)=3000     //this date comes in 1&3 records
2018-08-02  (2500+100+500)=3100 //this date comes in all 1,2,&3 records
2018-08-03  (2500+100+500)=3100 //this date comes in all 1,2,&3 records
2018-08-04  (100+500)=600       //this date comes in 2&3 records
2018-08-05  (100+500)=600       //this date comes in 2&3 records
2018-08-06  (100)=100           //this date comes in 3  records
I am trying to use mysql and php but I don't know how to do.
 
     
     
     
    