You could use password_verify() if you’ve used the corresponding function to hash the passwords in the first place. What did you use to store them with?
The other thread you were talking about this in: Log in need to check password - #17 by capljina2