Advertisement
Guest User

CRUD Mysqli hapus.php

a guest
May 25th, 2018
4,997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2. include"koneksi.php";
  3.  
  4.  
  5. $query = "DELETE FROM mahasiswa
  6.                             WHERE id_mahasiswa ='$_GET[id]'
  7.                                 ";
  8.  
  9. mysqli_query($koneksi, $query)
  10. or die ("Gagal Perintah SQL".mysql_error());
  11. header('location:index.php');
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement