Update file user.php

This commit is contained in:
Jan BELLON 2024-03-11 20:50:54 +00:00
parent 86a5817330
commit a44ce5b5df

View File

@ -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);