Advertisement
Guest User

Untitled

a guest
May 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. PDO php
  2.  
  3. $req = $bdd->prepare('INSERT INTO membres(pseudo, pass, email, date_inscription) VALUES(:pseudo, :pass, :email, CURDATE())');
  4. $req->execute();
  5.  
  6.  
  7. MYSQL php
  8.  
  9. $query = $db->prepare(
  10. "INSERT INTO pending_users (email, token, title_apt) VALUES (?, ?, ?, ?)"
  11. );
  12. $db->bind_param($title, $email, $token, $time);
  13. $db->execute();
  14. $db->close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement