$chkdomain= $_SERVER['HTTP_REFERER']; $chkdomain= parse_url($chkdomain); $domain=$chkdomain['host']; $streamname=""; include("db.php"); $id=$_GET['id']; $width=$_GET['width']; $height=$_GET['height']; $result = mysql_query("SELECT streamname FROM channel where streamname like '".$id."%' and ban='0'"); while ($row = mysql_fetch_array($result)) { $streamname = $row{'streamname'}; } //close the connection mysql_close($dbhandle); ?> - stream