Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1.         if($count > 0)
  2.             $sql= "UPDATE dynamic_password SET password = :password WHERE userid = :userid LIMIT 1";
  3.         else
  4.             $sql = "INSERT INTO dynamic_password (userid, password) VALUES (:userid, :password)";
  5.    
  6.         $q = $db->prepare($sql);
  7.         $q->execute(array(
  8.             ':userid' => $userid,
  9.             ':password' => $dynamic_password)
  10.         );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement