You must enter the name of the file . Please go back and try again."; exit(); } if ($file == '') { print "

You must enter the full file location. Please go back and try again.

"; exit(); } include("../include/dbconfig.php"); $connection = mysql_connect($db_host, $db_user, $db_pass) or die ("Unable to connect!"); mysql_select_db($db_name); $query = "update MM_media set Name='$name', File='$file', Type='$type' where Title='$title' and Name='$oname'"; $result = mysql_query($query, $connection) or die ("Error in query: $query. " . mysql_error()); header("Location: managetitle.php?title=$title"); exit(); ?>