Update file compte.php

This commit is contained in:
Jan BELLON 2024-03-11 22:07:42 +00:00
parent 64e118d886
commit 73bb75feed

View File

@ -4,7 +4,7 @@ require "../include/functions.php";
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass); $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 = $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(); $req->execute();
$resultat = $req->fetchAll(PDO::FETCH_ASSOC); $resultat = $req->fetchAll(PDO::FETCH_ASSOC);