im developing a script that uses a calendar for appointments. id like to be able to find all appointments in a particular week of the month. here's my code, all was working fine until it got to october 2002.???
$w=0;
$p=0;
for($i = 1; $i <= $days; $i++):
$dayofweek = date("w",mktime(1,1,1,$month,$i,$year));
endfor;
$w=$w+1;
if($dayofweek == 6 || $i == $days)
if ($dayofweek == 6){
echo " <td valign=\"middle\" width=$width\"><a href='menu.php?selection=stats&id=".$id."&m_s=".$month."&month_s=".$month."&week_s=".$w."' class='blue'>wk</a></td></tr>\n";
}ELSE{
echo " </tr>\n";
}
endfor;