In the calender i'm trying to "gray out" days from the past.
Im using this code
if ($year <= $currentyear) {
if ($month <= $currentmonth) {
if ($dom < $currentday OR $month < $currentmonth OR $year < $currentyear ) {
$dagen = "<font style=\"color: silver\">".$dom."</font>";
} else {
$dagen = $dagen;
}
} else {
$dagen = $dagen;
}
} else {
$dagen = $dagen;
}
The problem is...
Every day in the past for this year is greyed out, and every day UP TO current month in former year is greyed out, but the days from the same date as this yeat is NOT greyed out. Anyone with a suggestion?