Friday, April 23, 2010

Simple PHP Calendar - Finishing the Calendar

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

No comments: