For example, the last week of this month looks like this:
5/30 5/31 6/1 6/2 6/3 6/4 6/5
I want to use the following php code to print it out, but it doesn't work.
Please help me find the problem.
<?
$month=5;
$day=30;
$year=2004;
$week_first = mktime(0,0,0,$month,$day,$year);
$week_end = mktime(0,0,0,$month,$day+6,$year);
$the_date = $week_first;
while ($the_date <= $week_end) {
$month_value = $date("n", $the_date);
$day_value = date("j", $the_date);
$day_value++;
$the_date = mktime(0,0,0,$month_value, $day_value, $year);
echo $month_value. "/". $day_value;
}