St. Martin de Porres School Columbia

'".time()."' ORDER BY Start_Timestamp"; $result = mysql_query($query) or die('Error Get Calendar, failed'); $num=mysql_numrows($result); mysql_close($conn); $c=0; while ($c < $num) { $content[$c] = mysql_fetch_array( $result ); $c++; } /* echo'
';
print_r($content);
echo'
'; */ //COMMON VARS if (!isset($content[0]['ID'])) $content[0]['ID'] = ''; if (!isset($content[0]['Timestamp'])) $content[0]['Timestamp'] = time(); if (!isset($content[0]['Copy']))$content[0]['Copy'] = '<p>Enter Body Copy..</p>'; if (!isset($current_date)) $current_date = ''; if (!isset($bg)) $bg = "calendar_1"; echo''; foreach($content as $calendar_item) { if(date("M j Y", $calendar_item['Start_Timestamp']) != date("M j Y", $current_date)) { if ($bg == "calendar_1")$bg = "calendar_2"; else $bg = "calendar_1"; } if(date("M j Y", $calendar_item['Start_Timestamp']) == date("M j Y", $current_date)) echo''; else echo''; if($calendar_item[Time_Detail] == 1) echo''; elseif($calendar_item[Time_Detail] == 2) echo''; else echo''; echo''; $current_date = $calendar_item['Start_Timestamp']; } echo'
'.date("M j Y", $calendar_item['Start_Timestamp']).'All Day'.date("g:i a", $calendar_item['Start_Timestamp']).''.$calendar_item['Headline'].'
'.$calendar_item['Copy'].'
'; ?>
Error connecting to mysql