ok

Mini Shell

Direktori : /home/keydecors/www/admin/controller/
Upload File :
Current File : /home/keydecors/www/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");

?>

Zerion Mini Shell 1.0