Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. $pseudo = htmlspecialchars($_POST['pseudo']);
  2. $mail = htmlspecialchars($_POST['mail']);
  3. $motdepasse = sha1($_POST['motdepasse']);
  4. $bierepreferee = htmlspecialchars($_POST['bierepreferee']);
  5.  
  6.  
  7. $rq = $bdd->prepare('INSERT INTO `profil` (`pseudo`, `mail`, `motdepasse`, `bierepreferee`) VALUES (:pseudo, :mail, :motdepasse, :bierepreferee)');
  8. $rq->bindParam('pseudo', $pseudo, PDO::PARAM_STR);
  9. $rq->bindParam('mail', $mail, PDO::PARAM_STR);
  10. $rq->bindParam('motdepasse', $motdepasse, PDO::PARAM_STR);
  11. $rq->bindParam('bierepreferee', $bierepreferee, PDO::PARAM_STR);
  12. $rq->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement