From a44ce5b5dffd0fe00f11ff0cbb61345502fc159f Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 20:50:54 +0000 Subject: [PATCH] Update file user.php --- html/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/user.php b/html/user.php index 9ebf89c7..8388e4b1 100644 --- a/html/user.php +++ b/html/user.php @@ -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);