Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //HAPUS
- include "koneksi.php";
- $id = $_GET['id'];
- $result = mysqli_query($koneksi, "DELETE FROM m_siswa WHERE id = '$id'");
- if ($result){ ?>
- <script language="javascript">
- alert('Berhasil Dihapus');
- document.location.href="index.php";
- </script>
- <?php
- }else {
- trigger_error('Perintah SQL Salah: ' . $sql . ' Error: ' . $koneksi->error, E_USER_ERROR);
- }
- ?>
Add Comment
Please, Sign In to add comment