Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("config.php");
- if( isset($_GET['no']) ){
- // ambil id dari query string
- $no = $_GET['no'];
- // buat query hapus
- $sql = "DELETE FROM prestasi_siswa WHERE no=$no";
- $query = mysqli_query($db, $sql);
- // apakah query hapus berhasil?
- if( $query ){
- header('Location: list-siswa.php');
- } else {
- die("gagal menghapus...");
- }
- } else {
- die("akses dilarang...");
- }
- ?>
Add Comment
Please, Sign In to add comment