ok
Direktori : /proc/self/root/proc/self/root/home/keydecors/public_html/admin/controller/ |
Current File : //proc/self/root/proc/self/root/home/keydecors/public_html/admin/controller/delete_super.php |
<?php ob_start(); include("../model/dboperation.php"); $id=$_GET['dete']; $sql = "SELECT * FROM super_stockists WHERE id=$id"; $result = $mysqli->query($sql); while($row = $result->fetch_assoc()) { unlink("../super_stockists/$row[img]"); } $sql1 = "DELETE FROM super_stockists WHERE id=$id"; if (mysqli_query($mysqli, $sql1)) { echo "Record deleted successfully"; } else { echo "Error deleting record: " . mysqli_error($conn); } $suc="Deleted Successfully"; header("location:../pages/superstok_medicines_select.php"); ?>