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 tabledatabase
prepareDELETE FROM item WHERE iid ;
$stmtbindparami $iid;
Execute the statement
$stmtexecute;
Close the statement and connection
$stmtclose;
$mysqliclose;
Redirect to the main display page indexphp in our case
headerLocation: inventoryindex.php;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
