Update file user.php
This commit is contained in:
parent
86a5817330
commit
a44ce5b5df
@ -4,7 +4,7 @@ require "../include/functions.php";
|
||||
|
||||
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
||||
$username = isset($_GET['user']) ? htmlspecialchars($_GET['user']) : "";
|
||||
$req = $bdd->prepare("SELECT ID, username, creation_date, display_name, role, profile_picture, banner, bio FROM users WHERE username = :username ORDER BY date DESC");
|
||||
$req = $bdd->prepare("SELECT ID, username, creation_date, display_name, role, profile_picture, banner, bio FROM users WHERE username = :username");
|
||||
$req->bindParam(":username", $username);
|
||||
$req->execute();
|
||||
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user