real_connect($conf->hostname, $conf->username, $conf->password, $conf->database);
$query = "SELECT extension, created, original FROM screens WHERE id = $id";
$result = $db->query($query);
if($result->num_rows == 0) {
$message = 'This image does not exist: not in database';
} else {
// load tags
$image = $result->fetch_object();
$imageOutput = '';
$message = 'Uploaded on: ' . $image->created;
$message .= '
Original name: ' . $image->original;
$message .= '
View Raw: '. $id . '.' . $image->extension . '';
}
}
}
?>