Hi all,
I usually work with ASP but for this project I'm required to use php, so I'm having to 'learn on the job'. Basically i'm trying to create a calendar that links to events in a database.
I've found the perfect calendar and i've sorted all my database stuff, but when I try and link the two it doesn't work - whats worse is I don't get any error messages to help me!
Here's what i've got so far...
$days is the variable that is passed to the calendar script, this is the 'static' code that works fine...
This is the loop I created to create the above list using a database to get all the relevant events...Code:<?php $days = array( 2=>array('/weblog/archive/2004/Jan/02','event'), 3=>array('/weblog/archive/2004/Jan/03','event'), ); ?>
The calendar code i'm using can be found here...Code:$i=0; while ($i < $rCount) { $eID = mysql_result($result,$i,"eID"); $eStartDateTime = mysql_result($result,$i,"estartDateTime"); $eEndDateTime = mysql_result($result,$i,"eEndDateTime"); list($sYear, $sMonth, $sDay) = split('-', $eStartDateTime); $sDay = substr($sDay,0,2); if ($thisYear == $year && $thisMonth == $month) { $days .= "$sDay=>array('events-view.php?eID=$eID','event'),"; } $i++; $days .= array($days);
www.keithdevens.com/software/php_calendar
I've been staring at this code for hours trying to figure out where I'm going wrong... I've a funny feeling i've got the wrong syntax or something or i'm missing a quote or something!
Any help will be greatly appreciated!
Thanks,
Andy





Bookmarks