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