humaidi

hapus.php

Oct 14th, 2023
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | Source Code | 0 0
  1. <?php
  2.  
  3. // koneksi
  4. require_once "config/koneksi.php";
  5.  
  6. $id = @$_GET['id'];
  7.  
  8. // echo $id;
  9. mysqli_query($con, "DELETE FROM komentar WHERE id = '$id'") or die(mysqli_error($con));
  10.  
  11. echo "<script>alert('Data berhasil dihapus.'); window.location = 'bk-tamu.php';</script>";
  12.  
Advertisement
Add Comment
Please, Sign In to add comment