Lekcja 2 do dokończenia
This commit is contained in:
1 parent
90de07cc43
commit
6a225cb60c
16 files changed
+307
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?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();
|
||||
?>
|
||||
Reference in new issue
Block a user