diff --git a/ajax/ajax_php_file.php b/ajax/ajax_php_file.php index b42d25d..526ed67 100644 --- a/ajax/ajax_php_file.php +++ b/ajax/ajax_php_file.php @@ -18,7 +18,7 @@ // replace $host,$username,$password,$dbname with real info $dbh=mysqli_connect($host,$username,$password,$dbname); - mysqli_query($dbh,"INSERT INTO `files` (filename,path) VALUES ('".$_FILES['uploaded_file']['tmp_name']."','".$file_path."')") or trigger_error($link->error."[ $sql]"); + mysqli_query($dbh,"INSERT INTO `files` (filename,path) VALUES ('".$_FILES['file']['tmp_name']."','".$targetPath."')"); mysqli_close($dbh); echo "Image Uploaded Successfully...!!
";