= now()
AND sec_id=70
ORDER BY start_date ASC LIMIT 6;";
$result2 = mysql_query($query2) or die ("Query failed");
while ($row2 = mysql_fetch_array($result2))
{
$startmonth = date("M", strtotime($row2["start_date"]));
$startday = date("j", strtotime($row2["start_date"]));
$startyear = date("Y", strtotime($row2["start_date"]));
$displaydate = date("M j, Y", strtotime($row2["start_date"]));
if ($row2["end_date"] != "0000-00-00")
{
if ($startyear != $endyear)
$displaydate = $startmonth . " " . $startday . ", " . $startyear;
}
if ($row2["url"] != "http:://")
{
echo '
'.$displaydate . ' - ' . $row2["title"] . '';
}
else
{
if (substr($row2["url"],0,4) != "http")
$website = "http://" . $row2["url"];
else {
$website = $row2["url"];
} echo '
'.$displaydate . ' - ' . $row2["title"].'';
}
}
?>