rename folder

This commit is contained in:
2024-10-23 16:03:28 +02:00
parent f6deb4b849
commit 7739199863
16 changed files with 53 additions and 2 deletions

11
tpCrudTwig/delete.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
require_once('connect.php');
if (isset($_GET['id']) && !empty($_GET['id'])) {
$id = strip_tags($_GET['id']);
$sql = "DELETE FROM `users` WHERE `id`=:id;";
$query = $db->prepare($sql);
$query->bindValue(':id', $id, PDO::PARAM_INT);
$query->execute();
header('Location: index.php');
}
require_once('close.php');