I have this MySQL
table:
desc studentabsence;
+---------------------------+-------------+
| Field | Type |
+---------------------------+-------------+
| student_id | INT(11) |
| student_absence_startdate | date |
| student_absence_enddate | date |
+---------------------------+-------------+
Let's say that we have
student_absence_startdate = 2012-08-01
student_absence_enddate = 2012-08-08
Using PHP, I would like to echo
all business days between that range (Mon-Fri).
From the above range I would like to print:
2012-08-01
2012-08-02
2012-08-03
2012-08-06
2012-08-07
2012-08-08
How and where should I start to achieve this?