Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_GET['id']) && !empty($_GET['id'])){
- include 'koneksi.php';
- $id = (int) $_GET['id'];
- $res = $db->prepare("DELETE from user WHERE iduser=?");
- $res->bind_param('s', $_GET['id']);
- if($res->execute()){
- echo "<script>alert('Data berhasil dihapus');location.href='web.php?p=user';</script>";
- }else{
- echo '<p>Data gagal dihapus</p>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement