D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
permanent_delete_inventory.php
back
Copy
<?php ob_start(); session_start(); include 'config.php'; $id = $_GET['id']; // sql to delete a record $sql = "DELETE FROM inventory_manager WHERE item_id='$id'"; if ($conn->query($sql) === TRUE) { $_SESSION['permanent'] = "permanent" ; echo '<script>location.replace("view_delete_inventory.php")</script>'; } else { echo "Error deleting record: " . $conn->error; } ?>