Rofihimam

Untitled

Jan 22nd, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. <?php
  2.     include 'lib/library.php';
  3.  
  4.     $nis = $_GET['nis'];
  5.  
  6.     if (!empty($nis)) {
  7.         $sql = "DELETE FROM siswa WHERE nis = '$nis'";
  8.  
  9.         if ($mysqli->query($sql)) {
  10.             echo 1;
  11.         }
  12.         else {
  13.             echo 0;
  14.         }
  15.     }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment