Forum Moderators: coopster
Also I want to print this table out. Is there a print page function in PHP?
Sarah
try this to check what day of week this is
----
$tstamp=mktime(0,0,0,$m,$d,$y);
$Tdate = getdate($tstamp);
$wday=$Tdate["wday"];
$wday will have 0 for sunday
upto 6 for saturday
----
I dont know what do you want to do with this but a simple thing would be running a loop from 1 to days of month.
start spitting empty cells,
if the date 1 is on current weekday spit the date as well. This will start printing the dates in calendar format.
Also check in that cell if a record matches to the new dat, spit that also.
every time wday is 6, spit next row after spitting the cell
[ ][ ][ ][ ][1 ][2 ][3* ][4 ]
[5*]
Hope you are starting to code it now, do ask if you are stuck again.