Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. if ( $login != "" && $password != "" ) {
  2. // Prepare the statement
  3. $pullLogin = $link->prepare("SELECT hashed_password FROM users WHERE (username = '?' OR email='?')");
  4. // Check Prepare
  5. if ( !$pullLogin->prepare() ) { echo "<script>console.log('Prepare failed: ($pullLogin->errno) $pullLogin->error');</script>"; }
  6.  
  7. if ( $login != "" && $password != "" ) {
  8. // Prepare the statement
  9. $pullLogin = $link->prepare("SELECT hashed_password FROM users WHERE (username = '?' OR email='?')");
  10. // Check Prepare
  11. if ( !$pullLogin ) { echo "<script>console.log('Prepare failed: ($pullLogin->errno) $pullLogin->error');</script>"; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement