ok

Mini Shell

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

?>

Zerion Mini Shell 1.0