diff --git a/function.php b/function.php new file mode 100644 index 0000000..97e1ad7 --- /dev/null +++ b/function.php @@ -0,0 +1,20 @@ +getMessage()); +} +//SELECT * FROM `projetphp` WHERE `login` = 'aaazzze' +function userExist($login){ + $req = $bdd->prepare('SELECT * FROM `projetphp` WHERE `login` = :login'); + $req->execute(array('login' => htmlspecialchars($_POST["userToDel"]))); + if($req->rowCount() != 0) + { + return true; + } + else { + return false; + } +} +?>