<?php
require '../koneksi.php';
$id=$_GET['id'];

$sql=mysql_query("delete from masyarakat where nik='$id'");

if ($sql)
{
    ?>
    <script type="text/javascript">
        alert ('Data Berhasil Dihapus');
        window.location='admin.php?url=lihat_masyarakat';
    </script>
    <?php
}
?>