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')"; 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. 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
Archived
This topic is now archived and is closed to further replies.