View sourcecode

The following files exists in this folder. Click to view.

delete_user.php

13 lines ASCII Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
include("check_login.php");
include(
"db.php");

$id $_GET['id'];

$stmt $pdo->prepare("DELETE FROM users WHERE id = ?");
$stmt->execute([$id]);

header("location: users.php");
exit();
?>