Update file compte.php
This commit is contained in:
parent
475cda606b
commit
897fa58809
@ -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.";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user