Tuesday, 6 August 2013

Please can you help me out

Please can you help me out

I have the following script that is getting its variable via URL then is
processed in mysql and then the location of that file will be loaded in an
html5 player but i cant figure out what i'm doing wrong.
<?php
// Connects to your Database
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("media") or die(mysql_error());
$query = mysql_query("SELECT * FROM movies WHERE title='.$_GET['pattern']'")
or die(mysql_error());
$result = mysql_query($query);
$location = $result[location];
}
?>
<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
width="80%" height="90%"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="src" value="sam.mkv"/>
<embed
type="video/divx"
src="<?php '.$info "?>"`enter code here`
width="80%" height="400px"
pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object>

No comments:

Post a Comment