//require_once("../header.php"); //isMember(); $mID = (int)$_GET['id']; //include the mysql_connect script. I'm removing the header because of its nature //and this page is used as an iframe include "../mysql_connect.php"; include "../dBug.php"; $sql = "SELECT movies.*, u.username FROM movies LEFT JOIN users u ON u.id = movies.m_owner WHERE movies.m_id='{$mID}' LIMIT 1"; $result = mysql_query($sql); if( mysql_num_rows($result) != 1 ) { $result = mysql_query("SELECT * FROM movies ORDER BY RAND() LIMIT 1"); //echo center(red("The film could not be loaded, so we picked a random one.")); } $data = mysql_fetch_assoc($result); $width = 560; //400; $height = 315; //280; $file = "films/get.php?id=".$data['m_id']; $length = $data['m_length']; $videoName = $data['m_name']; $username = $data['username']; $videoId = $data['m_id']; if($length == 0) { $updateVideoLength = 1; } else { $updateVideoLength = 0; } echo "