Welcome Guest, Not a member yet? Register   Sign In
Comparing a md5 encrypted username to the datase
#2

[eluser]sunset11[/eluser]
Hi Bianca

Not sure this is what you need.

You just have to encrypt the username you receive with the native php function md5($string) and then compare this value with your field.

$username_md5 = md5($username)
and then
"SELECT * FROM TABLE WHERE username_field_name = '$username_md5' AND remember_me = 1"


Messages In This Thread
Comparing a md5 encrypted username to the datase - by El Forum - 08-17-2011, 02:43 PM
Comparing a md5 encrypted username to the datase - by El Forum - 08-17-2011, 04:53 PM
Comparing a md5 encrypted username to the datase - by El Forum - 08-17-2011, 07:15 PM
Comparing a md5 encrypted username to the datase - by El Forum - 08-18-2011, 12:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB