PDA

View Full Version : Normal Mode is OK, but TOC won't display


frameitsam
02-28-2006, 12:57 PM
Greetings.

I'm having trouble getting the anything other than the Normal mode to work. You can see the small calendar on the right for the current month, but if I try to integrate the TOC or List mode into the body of my page, all I get is a blank page. Without the following code the page display's normal. Any help?

<?php$TOC=1; require ("calendar/calendar.php"); ?>

http://www.nebraskacranes.com/index.php (my homepage works)
http://www.nebraskacranes.com/calendar.php (trying to use TOC mode)

Thanks

I added the following page so you can see the source for calendar.php. The only difference is that the code above is not included in calendar2.php.

http://www.nebraskacranes.com/calendar2.php

Brian
02-28-2006, 01:39 PM
Can you attach the code for http://www.nebraskacranes.com/calendar.php in a zip file?

frameitsam
02-28-2006, 01:51 PM
calendar.php
calendar2.php

both attached

Brian
02-28-2006, 01:59 PM
<?php$TOC=1; should be <?php $TOC=1;

(See the space)

frameitsam
02-28-2006, 02:07 PM
That did it.

Thanks.