PHP and MySQL password

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
BuzzT
Forum Newbie
Posts: 6
Joined: Thu Jun 13, 2002 9:44 am

PHP and MySQL password

Post 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?
BuzzT
Forum Newbie
Posts: 6
Joined: Thu Jun 13, 2002 9:44 am

Post by BuzzT »

Sorry...didn't mean to send this twice.

:roll:
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Might this have something to do with it: http://www.devnetwork.net/forums/viewtopic.php?t=511
BuzzT
Forum Newbie
Posts: 6
Joined: Thu Jun 13, 2002 9:44 am

Globals

Post by BuzzT »

Actually, I made a point of turning on register_globals, so it's not that.
Post Reply