document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. //HAPUS
  3. include "koneksi.php";
  4. $id     = $_GET[\'id\'];
  5. $result = mysqli_query($koneksi, "DELETE FROM m_siswa WHERE id = \'$id\'");
  6. if ($result){ ?>
  7.     <script language="javascript">
  8.             alert(\'Berhasil Dihapus\');
  9.         document.location.href="index.php";
  10.     </script>
  11. <?php
  12. }else {
  13.         trigger_error(\'Perintah SQL Salah: \' . $sql . \' Error: \' . $koneksi->error, E_USER_ERROR);
  14. }
  15. ?>
');