PFMaBiSmAd Posted October 25, 2010 Share Posted October 25, 2010 The mysql md5() function is not quoted as that would make it string data, not a function. However the string parameter it accepts is quoted - $query = "SELECT * FROM users WHERE username = '$username' AND password = MD5('$password')"; Quote Link to comment https://forums.phpfreaks.com/topic/216688-php-login-issues/page/2/#findComment-1126190 Share on other sites More sharing options...
VicHost Posted October 25, 2010 Author Share Posted October 25, 2010 The mysql md5() function is not quoted as that would make it string data, not a function. However the string parameter it accepts is quoted - $query = "SELECT * FROM users WHERE username = '$username' AND password = MD5('$password')"; You legend. Quote Link to comment https://forums.phpfreaks.com/topic/216688-php-login-issues/page/2/#findComment-1126191 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.