Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('koneksi.php');
- if(isset($_GET['nip'])){
- $nip = $_GET['nip'];
- $sql = 'delete from datasiswa where nip="'.$nip.'"';
- $query = mysqli_query($koneksi,$sql);
- if ($query) {
- echo "<script>
- alert('Data Berhasil Dihapus.');
- location.href='dsiswa.php';
- </script>";
- }else {
- echo "alert('Data Gagal Dihapus.');
- location.href='dsiswa.php'";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement