Select Git revision
delete_product.php
65160260 authored
delete_product.php 196 B
<?php
include 'connect.php';
if (isset($_GET['id'])) {
$stmt = $conn->prepare("DELETE FROM products WHERE id = ?");
$stmt->execute([$_GET['id']]);
header("Location: index.php");
}
?>