PHP Calendar
Calendar
<html>
<head>
<title>Calendar</title>
<style>
td {
font-family: verdana;
font-size: 11px;
height: 20;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$year = date("Y");
$month = date("M");
$day = date("d");
?>
<table width="150" border="1" bordercolor="#000000" style="border-collapse: collapse">
<?php
$i = "0";
$days = date("t",mktime(0,0,0,$month,$day,$year));
while ($i < $days) {
$i++;
if ($i == "8" || $i == "15" || $i == "22" || $i == "29") echo "<tr>";
if ($day == $i) echo "<td><center><b>$i</b></center></td>";
else echo "<td><center>$i</center></td>";
}
?>
</table>
</body>
</html>