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_member.php |
<?php include("../model/dboperation.php"); $id=$_GET['dete']; $sql = "SELECT * FROM vaccine WHERE ids=$id"; $result = $mysqli->query($sql); while($row = $result->fetch_assoc()) { unlink("../vaccine_img/$row[img]"); } $sql1 = "DELETE FROM vaccine WHERE ids=$id"; if (mysqli_query($mysqli, $sql1)) { echo "Record deleted successfully"; } else { echo "Error deleting record: " . mysqli_error($conn); } $suc="Deleted Successfully"; ob_clean(); header("location:../pages/vaccine_kart_select.php"); ?>