Events & News
$label | " .
fixamps($value) . " | \n";
}
function fixamps($string) { // map & chars to & if not entities
return ereg_replace('\&([[:alnum:]]*([^;[:alnum:]]|$))','&\1',$string);
}
function fixlines($blob) { // map end-of-line sequences to
$blob = ereg_replace("\r\n", "\n", $blob);
$blob = ereg_replace("[\r\n]", "
\n", $blob);
return fixamps($blob);
}
if (mysql_num_rows($result) == 0)
echo "
No information available for event with ID=" .
$ID . ".
\n";
while ($row = mysql_fetch_object($result)) {
echo("
$row->Event
");
$utime = strtotime("$row->Date $row->Start");
echo("
\n");
show("Category", $row->Category);
show("Date", date("l, F j, Y", $utime));
show("Time", date("g:i a", $utime), '12:00 am');
show("Concludes",
date("g:i a", strtotime("$row->Date $row->Stop")), '12:00 am');
show("Location", $row->Location);
show("Details", fixlines($row->Details));
show("Speaker", "$row->Speaker", "");
show("Title", $row->Title);
show("Affiliation", $row->Affiliation);
if ($row->Webpage != "")
show("Webpage", "Webpage\">$row->Webpage");
echo("
\n");
if ($row->Topic != '')
echo "
" . fixamps($row->Topic) . "
";
if ($row->Description != '')
echo "
" . fixlines($row->Description) . "
\n";
if ($row->Biography != '')
echo "
Biography
" . fixlines($row->Biography) . "
\n";
}
mysql_close();
}
?>