Update file compte.php

This commit is contained in:
Jan BELLON 2024-03-12 12:17:28 +00:00
parent 475cda606b
commit 897fa58809

View File

@ -40,6 +40,8 @@ if(isset($_POST['user_display_name']) && isset($_POST['user_name']) && isset($_P
$req->bindParam(":user_id", $_SESSION['userid']);
if($req->execute()) {
$status = "Informations mises à jour";
$_SESSION['username'] = htmlspecialchars($_POST['user_name']);
$_SESSION['display_name'] = htmlspecialchars($_POST['user_display_name']);
} else {
$status = "Erreur, les informations n'ont pas pu être mises à jour.";
}