Files
serwerowe_mendela/Lekcja_02/delete.php
T
2026-09-28 12:28:39 +02:00

17 lines
330 B
PHP

<?php
print_r($_GET);
include("config.php");
$conn = mysqli_connect($host, $user, $pass, $dbnm);
$stmt = $conn->prepare("DELETE FROM main WHERE id=?");
$id = intval($_GET["id"]);
$stmt->bind_param("i", $id);
$stmt->execute();
mysqli_close($conn);
header("Location: ./");
exit();
?>