ok

Mini Shell

Direktori : /home/keydecors/www/admin/controller/
Upload File :
Current File : /home/keydecors/www/admin/controller/delete_vaccine.php

<?php
ob_start();
include("../model/dboperation.php");
$id=$_GET['dete'];
$sql = "SELECT * FROM gallery WHERE id=$id";
$result = $mysqli->query($sql);
while($row = $result->fetch_assoc()) 
{
	unlink("../pro/$row[img]");
	
	

}
$sql1	=	"DELETE  FROM gallery WHERE id=$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/pro_select.php");

?>

Zerion Mini Shell 1.0