Advertisement
Thelz

Delete.php

Oct 23rd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. <?php
  2.     include 'lib/library.php';
  3.  
  4.     $nis = $_GET['nis'];
  5.     $sql = "DELETE FROM siswa WHERE nis = '$nis' ";
  6.  
  7.     $query = $mysqli -> query($sql);
  8.     $mysqli->query($sql) or die($mysqli -> error);
  9.  
  10.         header('location:index.php');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement