Page 1 of 1

PHP and MySQL password

Posted: Thu Jun 13, 2002 9:51 am
by BuzzT
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?

Posted: Thu Jun 13, 2002 9:52 am
by BuzzT
Sorry...didn't mean to send this twice.

:roll:

Posted: Thu Jun 13, 2002 10:40 am
by jason
Might this have something to do with it: http://www.devnetwork.net/forums/viewtopic.php?t=511

Globals

Posted: Thu Jun 13, 2002 12:13 pm
by BuzzT
Actually, I made a point of turning on register_globals, so it's not that.