rendered paste body<?php
include 'header.php';
?>
<div id="container">
<div id="contentleft">
<div align="right"><h2>Todays Date is <?php echo gmdate('l dS \of F Y'); ?></h2></div>
<div align="center"><h2>Todays Schedule</h2></strong></span></div>
<?php
$ms = mysql_pconnect("localhost", "merter_calendar", "calendar");
if ( !$ms )
echo "Error connecting to database.\n";
mysql_select_db ("merter_calendar");
for ($i=0; $i<24; $i++)
{
$result = mysql_query("SELECT * FROM events WHERE HOUR(timestamp) = '".$i."'",$ms);
$myrow = mysql_fetch_array($result);
$time = $i.":00";
echo $time.'<br />';
echo $myrow['title'].'<br />';
if ($myrow['timestamp'] == $time)
{
echo $myrow['title'];
}
}
?>
</div>
<div id="contentright">
<?
include 'month.php';
$month = date("m");
$year = date("Y");
showMonth($month, $year);
showMonth($month +1, $year);
showMonth($month +2, $year);
?>
</div>
<?php
include 'footer.php';
?>