dithph

delete.php

May 15th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. include "koneksi.php" ;
  3.  
  4. $id = $_GET['no'];
  5. $meella = mysql_query("DELETE FROM arsip WHERE id_arsip = '$id'");
  6.  
  7. if ($meella) {
  8. echo "<script>alert('Hapus data berhasil!'); window.location = 'halamanarsip.php'</script>";
  9. }else{
  10. echo "<script>alert('Gagal hapus data!'); window.location = 'halamanarsip.php'</script>";
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment