MySQL php get column using another column (Get password using username)
问题 After successfully verifying username exists in the database, I need to verify whether the password matches as well. Therefore, I need to retrieve the hashed password from the database, right? Or do I have other choices? I'm using PHP 5.5 API bcrypt for hashing. My code would give me a 500 internal server error when I get the password from database. How do I do this correctly? Here's my php code: // If found username, check password, else respond invalid username if($countRows!==0){ // Get