Files
serwerowe_mendela/Lekcja_02/delete.php
T

15 lines
310 B
PHP

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