Update file compte.php
This commit is contained in:
parent
2292da6889
commit
8e55db0e55
@ -21,7 +21,7 @@ if($resultat) {
|
||||
die("Erreur, utilisateur introuvable");
|
||||
}
|
||||
|
||||
is(isset($_POST['user_display_name']) && isset($_POST['user_name']) && isset($_POST['user_bio']) && isset($_POST['user_pp']) && isset($_POST['user_banner'])) {
|
||||
if(isset($_POST['user_display_name']) && isset($_POST['user_name']) && isset($_POST['user_bio']) && isset($_POST['user_pp']) && isset($_POST['user_banner'])) {
|
||||
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
||||
$req = $bdd->prepare("SELECT ID FROM users WHERE username = :user_name");
|
||||
$req->bindParam(":user_name", htmlspecialchars($_POST['user_name']));
|
||||
|
Loading…
x
Reference in New Issue
Block a user