//Finaly we finish out the table with some blank details if neededTo finish our calendar we use one last while loop. This one fills in the rest of our calendar with blank table details if needed. Then we close our table and our script is done. View Full Calendar Code.
while ( $day_count >1 && $day_count <=7 )
{
echo "<td> </td>";
$day_count++;
}
echo "</tr></table>";

