hisham
IS-IT--Management
- Nov 6, 2000
- 194
As PHP contains no functions for decrypting a hashed string, and I use md5() to encrypt users passwords in a database. Who can I create a login code that can select the password?
If I use:
$query = mysql_query("SELECT * FROM users where password = “$password”);
This will returns the encrypt password, so when the user enter his password, he will gets an Invalid one.
If I use:
$query = mysql_query("SELECT * FROM users where password = “$password”);
This will returns the encrypt password, so when the user enter his password, he will gets an Invalid one.