Advertisement
dysphafiz_

Untitled

Jan 22nd, 2020
159
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.     if (!empty($nis)) {
  6.         $sql = "DELETE FROM siswa WHERE nis = '$nis'";
  7.  
  8.         if ($mysqli->query($sql)) {
  9.             echo 1;
  10.         } else {
  11.             echo 0;
  12.         }
  13.     }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement