Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'db.php';
- $id = (int)$_GET['id'];
- $query = "DELETE FROM items WHERE id = $id";
- if (mysqli_query($conn, $query)) {
- header('Location: index.php');
- } else {
- echo 'Gagal menghapus barang: ' . mysqli_error($conn);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement