I recently tried to use a script that I know works. I have used it before, but I cannot figue out the problem.
When I add passwords to a table for login information, I send them to MySQL through PHP as password('$password'). This encrypts them fine. I can see that when I check the database.
When I try to validate the password later during login using the same method, I can't seem to get in. The exact same script works for me on a friend's server. I have installed PHP4 and MySQL on a Win 2K server. Did I miss a setting or something? How come they can be sent, but not retieved?
Also, I can't seem to find an mcrypt.dll that will work. It always locks up when PHP tries to access it. How come?
PHP and MySQL password
Moderator: General Moderators
Might this have something to do with it: http://www.devnetwork.net/forums/viewtopic.php?t=511