$today= date("l F j\, Y");
$stampedToday = mktime(date("H"),date("i"),date("s"),date("m"), date("d"), date("Y"));
echo " Welcome to our calendar, Today is ";
echo $today;
echo ".";
$res = mysql_query("SELECT * FROM eventList ORDER BY date");
while($row = mysql_fetch_assoc($res))
{
if ($row["eventActive"]==1) {
if ($row["invisible"]==0) {
?>
list($Year,$Month,$Day) = split('-',$row["date"]);
list($eYear,$eMonth,$eDay) = split('-',$row["enddate"]);
list($Hour,$Minute,$Second) = split('-',$row["end"]);
$stampeddate = mktime($Hour,$Minute,0,$eMonth,$eDay,$eYear);
$stampedsdate = mktime(0,0,0,$Month,$Day,$Year);
$realDate = date("l F j\, Y",$stampedsdate);
if ($stampeddate >= $stampedToday){
?>
}
}
}
}
?>
|