SHARE
TWEET

Untitled

a guest Jan 21st, 2020 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   include 'lib/library.php';
  3.   $nis = $_GET['nis'];
  4.   if (!empty($nis)) {
  5.     $sql = "DELETE FROM siswa WHERE nis = '$nis' ";
  6.  
  7.     if ($mysqli->query($sql)) {
  8.       echo 1;//Ubah, jika data berhasil dihapus, tampilkan 1
  9.                 //Jika gagal, tampilkan 0
  10.                 //(Digunakan untuk result ajax)
  11.  
  12.      
  13.     }else{
  14.       echo 0;
  15.     }
  16.   }
  17.  ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top