Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. http://php.net/manual/fr/function.htmlentities.php
  2. Ma fonction:
  3.  
  4. function secure($variable)
  5. {
  6. $variable = htmlentities($variable, ENT_QUOTES, "UTF-8");
  7. return $variable;
  8. }
  9.  
  10. Utilisation:
  11. $query = $this->bdd->query("SELECT * FROM user WHERE Pseudo='".$this->secure($pseudo)."' AND Password='".$this->secure(md5($password))."'");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement