SHARE
TWEET

Untitled

a guest May 25th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. else //On check le mot de passe
  2.     {
  3.         $query=$bdd->prepare('SELECT Password, ID, NomCompte FROM log WHERE NomCompte = :pseudo');
  4.         $query->bindValue(':pseudo',$_POST['login'], PDO::PARAM_STR);
  5.         $query->execute();
  6.         $data=$query->fetch();
  7.     if ($data['Password'] == ($_POST['pass'])) // Acces OK !
  8.     {
  9.         $_POST['login'] = $data['NomCompte'];
  10.         if ($data['NomCompte'] == 'a013375')
  11.         {
  12.             $message = '<p>Bienvenue '.$data['NomCompte'].'
  13.             vous êtes maintenant connecté!</p>
  14.             <p>Cliquez <a href="./AjoutUser.html">ici</a>
  15.             pour revenir à la page d ajout de compte</p>
  16.             <p>Cliquez <a href="./accueil.php">ici</a>
  17.             pour revenir à la page d accueil</p> ';
  18.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top