Special Event

@session_start();

//Include database connection details
//require_once('config.php');
include('calstyle.php');

//Array to store validation errors
$errmsg_arr = array();

//Validation error flag
$errflag = false;

//Connect to mysql server

$link = mysql_connect("external-db.s73119.gridserver.com", "db73119", "qycRwEKSnqY5i1");
if(!$link) {
die('Failed to connect to server: ' . mysql_error());
}

//Select database
$db = mysql_select_db("db73119_fhpgrf");
if(!$db) {
die("Unable to select database");
}

if(isset($_GET['event_id']) && is_numeric($_GET['event_id'])) {

$sql = "SELECT * FROM events WHERE event_id={$_GET['event_id']}";
$result = mysql_query($sql);
$row = @mysql_fetch_array($result);

$image = $row['event_file'];
$type = $row['type'];
$month = $row['month'];
$day = $row['day'];
$year = $row['year'];
$eventname = $row['event_name'];
$eventdesc = $row['event_desc'];
}

print '

‘.$eventname.’

‘;
print ‘

‘.$month.’/’.$day.’/’.$year.’

‘;
if($image!=NULL)
{
$image = ‘
‘;
if($image!=NULL)
{
print $image;
}
}
print ‘

'.$eventdesc.'

‘;
?>