1. Home
  2. Computing & Technology
  3. PHP / MySQL

Simple PHP Calendar

By Angela Bradley, About.com

5 of 5

Finishing the Calendar

//Finaly we finish out the table with some blank details if needed
while ( $day_count >1 && $day_count <=7 )
{
echo "<td> </td>";
$day_count++;
}

echo "</tr></table>";
To 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.

[See working calendar example]

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. Step By Steps
  5. PHP Calendar - Simple PHP Calendar - PHP Calendar Tutorial

©2009 About.com, a part of The New York Times Company.

All rights reserved.