View sourcecode

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

ta_bort_användare.php

13 lines ASCII Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
session_start
();
require_once(
'check_login.php');
require_once(
'database_connection.php');

$userId trim($_GET['userId']);

$sql "DELETE FROM user WHERE userId = :userId;";
$stm $pdo->prepare($sql);
$stm->execute(array('userId' => $userId));

header('location: admin.php');
?>