D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
lampp
/
htdocs
/
admin
/
Filename :
delete.php
back
Copy
<?php require_once('db.php'); $get_id=$_GET['product_id']; // sql to delete a record $sql = "Delete from add_product where product_id = '$get_id'"; // use exec() because no results are returned $conn->exec($sql); header('location:index.php'); ?>