hapus data siswa (update)
Syntaknya : <?php $nis = $_GET [ 'nis' ]; include "config.php" ; $perintah = " DELETE FROM tb_siswa WHERE nis = ' $nis ' " ; $query = mysqli_query ( $koneksi , $perintah ); if ( $query ) { echo "<script> alert('Berhasil'); parent.location='data_siswa.php'; </script>" ; } else { echo "<script> alert('Gagal'); parent.location='data_siswa.php'; </script>" ; } ? > Outputnya :