Guest User

Untitled

a guest
Dec 19th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. if (mysqli_num_rows($result) > 0) {
  2. // output data of each row
  3.  
  4. while($row = mysqli_fetch_assoc($result)) {
  5. if (password_verify($RegisteredPass, $row['pass']))
  6. {
  7. echo "tchd";
  8. echo "ID:".$row['id'] ."|Name:".$row['name']. "|User:".$row['user'];
  9. }
  10. else{
  11. echo "pass doesn`t match";
  12.  
  13. }
  14. }
  15. } else {
  16.  
  17. echo "user not found";
  18. }
  19.  
  20. $hassedPassword = password_hash($password, PASSWORD_DEFAULT, ['cost' => 12]);
Add Comment
Please, Sign In to add comment