Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'koneksi.php';
- if(isset($_GET["nis"])){
- // Prepared statement untuk menghapus data
- $query = $db->prepare("DELETE FROM `tbl_siswa` WHERE nis=:nis");
- $query->bindParam(":nis", $_GET["nis"]);
- // Jalankan Perintah SQL
- $query->execute();
- // Alihkan ke index.php
- header("location: index.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement