Good day to you all,
I'm working on a calendar script.
I'm facing 2 questions;
1. How, if is this month, can I have the day in a different color ?
2. how could I have the Saturday and Sunday show in different color ?
Here is my code:
PHP Code:
<? function showMonth($month, $year) { $date = mktime(12, 0, 0, $month, 1, $year); $daysInMonth = date("t", $date); // calculate the position of the first day in the calendar (sunday = 1st column, etc) $offset = date("w", $date); $rows = 1;