Question: When I run the following code it displays the Are you sure you want to delete pop box, I select yes; however, nothing happens after

When I run the following code it displays the "Are you sure you want to delete" pop box, I select yes; however, nothing happens after that. The item is still listed in my table/database.
prepare("DELETE FROM item WHERE iid =?");
$stmt->bind_param("i", $iid);
// Execute the statement
$stmt->execute();
// Close the statement and connection
$stmt->close();
$mysqli->close();
// Redirect to the main display page (index.php in our case)
header("Location: inventory_index.php");
?>

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 Programming Questions!