Update file compte.php
This commit is contained in:
parent
1a1c9f0d54
commit
c432d14de4
@ -23,7 +23,7 @@ if($resultat) {
|
|||||||
|
|
||||||
if(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);
|
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
||||||
$req = $bdd->prepare("SELECT ID FROM users WHERE username = :user_name AND ID NOT IN ( :user_id )");
|
$req = $bdd->prepare("SELECT ID FROM users WHERE username = :user_name AND NOT ID = :user_id");
|
||||||
$req->bindParam(":user_name", htmlspecialchars($_POST['user_name']));
|
$req->bindParam(":user_name", htmlspecialchars($_POST['user_name']));
|
||||||
$req->bindParam(":user_id", $_SESSION['userid'], PDO::PARAM_INT);
|
$req->bindParam(":user_id", $_SESSION['userid'], PDO::PARAM_INT);
|
||||||
$req->execute();
|
$req->execute();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user