I'm working on a calendar, but i can't figure out how to get it to start at the first day of the month instead of in the first cell. Thanks 4 the help
<?php
echo "Today is: ";
echo(date("l\, F dS Y") . "<br /><br />");
echo "<table border='1'>";
$Number = 1;
$Month = date("F");
$Year = date('Y');
$Month_number = date('n');
echo "<tr><td colspan=\"7\" align=\"center\">$Month $Year</td></tr>";
echo '<tr>';
echo "<td>Sunday</td>";
echo "<td>Monday</td>";
echo "<td>Tuesday</td>";
echo "<td>Wednesday</td>";
echo "<td>Thursday</td>";
echo "<td>Friday</td>";
echo "<td>Saturday</td>";
'</tr>';
$days_in_month = date('t');
$first_day_of_month = date('l',mktime(0,0,0,$Month_number,1,$Year));
for ($Row = 0; $Row < 6; $Row++)
{echo '<tr>';
for ($Column= 0; $Column < 7; $Column++)
{ if ($Number <= $days_in_month) {echo "<td>$Number</td>";
$Number++;
}
}
echo '</tr>';
}
echo "</table>";
?>