我有这张MySQL
桌子:
desc studentabsence;
+---------------------------+-------------+
| Field | Type |
+---------------------------+-------------+
| student_id | INT(11) |
| student_absence_startdate | date |
| student_absence_enddate | date |
+---------------------------+-------------+
假设我们有
student_absence_startdate = 2012-08-01
student_absence_enddate = 2012-08-08
使用 PHP,我想echo
在该范围(周一至周五)之间的所有工作日。
从上述范围我想打印:
2012-08-01
2012-08-02
2012-08-03
2012-08-06
2012-08-07
2012-08-08
我应该如何以及从哪里开始实现这一目标?