allren wrote:
Cant you just user a MYSQL password(\'$argument\') when you insert the data into the database?
That's another option, but the original poster used md5 to encrypt the password. so rather than use PASSWORD() on insert, he used MD5() or just did it in php. Bottom line is that the comparision needs to be consistent. if you password() on insert, you need to password() on compare, same w/ md5() or even encrypt().
As an aside, he could even do this (a correction to my last posting)
select <fields>
from <table>
where username = '$strUserName'
and password = md5('$strOrigPass')
instead of doing the md5() in php code..