Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (mysqli_num_rows($result) > 0) {
- // output data of each row
- while($row = mysqli_fetch_assoc($result)) {
- if (password_verify($RegisteredPass, $row['pass']))
- {
- echo "tchd";
- echo "ID:".$row['id'] ."|Name:".$row['name']. "|User:".$row['user'];
- }
- else{
- echo "pass doesn`t match";
- }
- }
- } else {
- echo "user not found";
- }
- $hassedPassword = password_hash($password, PASSWORD_DEFAULT, ['cost' => 12]);
Add Comment
Please, Sign In to add comment