complete-php-crud/admin/delete_data.php

12 lines
212 B
PHP

<?php
// Muhammad Daffa ~ daffa.tech
include_once'../config.php';
$id = $_GET['id'];
$query = "DELETE FROM list_barang WHERE id='$id'";
mysqli_query($conn, $query);
header("Location: dashboard.php");
?>