Ive been able to successfuly create a calendar using `cal
The first row of days of the calendar begins on the left hand side of the table. Without the necessary offset, that first row of days will never match up correctly with the row of days above it (i.e. Su Mo Tu We Th Fr Sa).
This is where my calendar is now: [url]http://mishii.no-ip.com/calendar.php
And this is my source:
[code=php]function make_calendar(){
exec(“cal”, $calArray);
$count = count($calArray);
print(“$calArray[0]n”);
print(“<table dir=”LTR” bgcolor=”#000000″ border=”1″ cellpadding=”3″ cellspacing=”1″>n”);
$dayrow = explode(” “, $calArray[1]);
$dayrowcount = count($dayrow);
for($k=1; $k < $count; $k++) {
$split = explode(” “, $calArray[$k]);
print(“<tr valign=”right” align=”right”>n”);
foreach($split as $jnd) {
$count = count($split);
if($jnd) {
print(“<td bgcolor=”#FFFFFF” align=”center”>$jnd</td>n”);
}
}
print(“</tr>”);
}
}
Ive exahsted my resources. Ive tried to look for help on google but people want to give you solutions that have integrated flat file DB support or MySQL. My problem is alot more simple than that.