hapuskomen.php 384 Bytes
Newer Older
leonardo siagian committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php
require 'koneksi.php';

$id = $_GET["id"];

if(hapuskomentar($id) > 0){

    echo "
        <script>
            alert('Data berhasil dihapus!');
            document.location.href = 'produk.php'
        </script>
    ";
}else{
    echo "
        <script>
            alert('Data gagal dihapus!');
            document.location.href = 'produk.php'
        </script>
    ";
}

?>