Question: i can not find the error in my code to move the image to the folder the folder is in the same location as the

i can not find the error in my code to move the image to the folder

the folder is in the same location as the codes files

details of the post:

if(isset($_POST["sub"])) {

move_uploaded_file($_FILES["image"]["tmp_name"], "img/" . $_FILES["image"]["name"]);

$con = new mysqli("localhost", "root","", "voluntary"); $st = $con->prepare("insert into post(productName,productDetails,image,name) values(?,?,?,?)"); $st->bind_param("ssss", $_POST["pn"], $_POST["pd"],$_POST["image"],$_SESSION["name"]); $st->execute(); echo '';

}

?>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!