In message <581504.60901.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, Gab Teo <doneatlast1000@xxxxxxxxx> writes >Anyone in the house please, > >Can someone spot out while the below video script is entry empty data on my >database. > > >This is the video input script > ><?php >if (isset($_POST[Submit])) >{ >include ("mydatabase.php"); >$name=mysql_real_escape_string($_POST[name]); > > if (file_exists("upload/" . $_FILES["file"]["name"])) > { > echo $_FILES["file"]["name"] . " already exists. "; > } > else > { > move_uploaded_file($_FILES["file"]["tmp_name"], > "upload/" .urlencode( $_FILES["file"]["name"])); > $path="upload/" . urlencode($_FILES["file"]["name"]); > > $insert=mysql_query("insert into videos(username,name,path)Values( >'$username', '$name', '$path')"); I don't see where you set $username. I would try $qry="insert into videos(username,name,path)Values( $username', '$name', '$path')"; echo $qry; $insert=mysql_query($qry); That, and any mysql error message that you get, should show you how to sort it out. -- Pete Clark Hot Costa - Local Spain http://www.hotcosta.com