include($_SERVER['DOCUMENT_ROOT'] . "/system_files/functions.php");
// just so we know it is broken
//error_reporting(E_ALL);
//SHOWS A VIDEO FROM THE LIBRARY (YOU TUBE ONLY RIGHT NOW)
// some basic sanity checks
if(isset($_GET['id']) && is_numeric($_GET['id']) && $_GET['id']>=1) {
// get the image from the db
$sql = "SELECT filetype, url, title, description, keywords FROM Library WHERE id=$id";
// the result of the query
$result = database_query($sql);
if($result){
$myrow=mysql_fetch_row($result);
if($myrow[0]=="video/youtube"){
//generate HTML for the page
?>
Description: echo $myrow[3]; ?>
Keywords: echo $myrow[4]; ?>
} else{ echo "Error loading the video item from the library (103)"; } } else{ echo "Error getting your video from the database (102)"; } } else { echo "Please use a real video ID number (100)."; } ?>