Guest User

Untitled

a guest
Aug 11th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. $stmt = $db->prepare("SELECT * FROM users WHERE user=?");
  2. $stmt->bind_param("s", $username);
  3. $stmt->execute();
  4. $result = $stmt->get_result();
  5. if ($stmt->num_rows == 1) {
  6. $row = $result->fetch_assoc();
  7. $password = $row["pass"];
  8. // Check Password
  9. if ($pass == $password) {
  10. // Some Operations
  11. }
  12. }
Add Comment
Please, Sign In to add comment