include '../inc/db.inc.php';
$adminPage = true;
$id = $_GET['eventID'];
if($id)
{
$result = mysql_query("select description, title, date, summary, text
FROM gns_events WHERE eventID=$_GET[eventID]");
$event = mysql_fetch_assoc($result);
}
echo "
\"$title\" Changed Succesfully
";
}
else
{
echo "
Error Modifying event
". mysql_error()."
";
}
echo "
Return to event
";
}
}
else
{
$text = $event['text'] ? "checked": "";
$html = $text ? "":"checked";
$summary = $text ? str_replace("
","",$event['summary']) : $event['summary'];
$addeventForm = "
";
// display the form on every page instance
echo $addeventForm;
}
}
}
include '../inc/footer.php';
?>