document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. include "../koneksi/koneksi.php";
  3.  
  4. $id = $_GET[\'id\'];
  5. $query = mysql_query("DELETE FROM db_crud_lat1 WHERE id=\'$id\'");
  6.  
  7. if(!$query){
  8. ?>
  9. <script>
  10. alert(\'Terjadi kesalahan sistem saat Hapus data!\');
  11. document.location.href="../data.php";
  12. </script><?php
  13. }else{
  14. ?>
  15. <script>
  16. alert(\'Data berhasil dihapus\');
  17. document.location.href="../data.php"</script><?php
  18. }
  19. //Copyright Tegal Tourism
  20. ?>
');