If I give 2 dates, I need results as follow -
SUNDAY = 3 TIMES
MONDAY = 3 TIMES
TUESDAY = 4 TIMES
WEDNESDAY = 4 TIMES
THURSDAY = 4 TIMES
FRIDAY = 4 TIMES
SATRUDAY = 4 TIMES
I am confused if this can be done via any function in mysql or I have to do it from php. I tried with various ways in mysql but could not get any success. I am trying it in php but the codes is somewhat getting lengthy.