[eluser]kenreynolds[/eluser]
Sorry! The code above actually ends on line 19. For that code, I get the following error in the log:
===== Monday, January 24, 2011 7:36:42 AM US/Central =====
[24-Jan-2011 07:36:47] PHP Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /Applications/MAMP/htdocs/CodeIgniter/application/controllers/cal.php on line 19
After getting that error I added the closing '?>' php tag to line 20 and got the error referencing line 20 in my previous reply.