From 73bb75feed0bd79a1f588b095ed447ed7c1cde69 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 22:07:42 +0000 Subject: [PATCH] Update file compte.php --- html/compte.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/compte.php b/html/compte.php index 42021494..b2867102 100644 --- a/html/compte.php +++ b/html/compte.php @@ -4,7 +4,7 @@ require "../include/functions.php"; $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); $req = $bdd->prepare("SELECT ID, username, creation_date, display_name, role, profile_picture, banner, bio FROM users WHERE ID = :user_id"); -$req->bindParam(":user_id", $_SESSION['ID']); +$req->bindParam(":user_id", $_SESSION['user_id']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC);