$res = mysql_query("SELECT * FROM eventList WHERE id = $id");
$row = mysql_fetch_assoc($res);
?>
list($Year,$Month,$Day) = split('-',$row["date"]);
list($eYear,$eMonth,$eDay) = split('-',$row["enddate"]);
$stampeddate = mktime(12,0,0,$Month,$Day,$Year);
$stampededate = mktime(12,0,0,$eMonth,$eDay,$eYear);
$realDate = date("D M j\, Y",$stampeddate);
$realeDate = date("D M j\, Y",$stampededate);?>
echo $row["name"];?>
Description:
echo jpnPrint(nl2br($row["description"]));?>
Suggested Attire:
echo jpnPrint(nl2br($row["attire"]));?>
Directions:
echo jpnPrint(nl2br($row["venue"]));?>
echo jpnPrint(nl2br($row["address"]));?>
$maploc = $row["address"];
$gmap = str_replace(" ","+",$maploc);
$gmap = str_replace("\n","+",$gmap);
$gmap = str_replace(",","",$gmap);
echo "(";
echo "map)";
?>
echo jpnPrint(nl2br($row["directions"]));?>
|
|
|
|
if ($stampededate == $stampeddate) { ?>
When:
echo dateFromMysqlToNormal($realDate);?>
Time:
echo timeFromMysqlToNormal($row["start"]);?>
-
echo timeFromMysqlToNormal($row["end"]);?>
} else { ?>
When:
echo dateFromMysqlToNormal($realDate);?>
echo timeFromMysqlToNormal($row["start"]);?>
through
echo dateFromMysqlToNormal($realeDate);?>
echo timeFromMysqlToNormal($row["end"]);?>
} ?>
Location:
echo jpnPrint($row["location"]);?>
if($row["eventSoldOut"]==1){ ?>
SOLD OUT
} else { ?>
Cost:
$ echo jpnPrint($row["cost"]);?>
echo jpnPrint($row["costplus"]);?>
if($row["allow"]==1){ ?>
} else { ?>
} ?>
} ?>
">
">
|
|
|
$row = mysql_query("SELECT * FROM ads ORDER BY id");
while($res = mysql_fetch_assoc($row))
{
if($res['imgid'] != "-1")
{
?>
}} ?>
|