[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
pmb
/
[
Home
]
File: hapuspendaftar.php
<?php session_start(); include'config.php'; if( isset($_GET['idpeserta']) ){ // ambil id dari query string $idpeserta = $_GET['idpeserta']; // buat query hapus $sql = "DELETE FROM peserta WHERE idpeserta=$idpeserta"; $query = mysqli_query($koneksi, $sql); // apakah query hapus berhasil? if( $query ){ header('Location: datapendaftar.php'); } else { die("gagal menghapus..."); } } else { die("akses dilarang..."); } ?>