appels Posted September 7, 2010 Share Posted September 7, 2010 Hi, i have a syntax error on my query string but can't figure out what's wrong : $qry = "UPDATE members SET firstname = '".$fname"', lastname = '".$lname"', passwd = '".md5($password)."' WHERE member_id = '".$_SESSION['SESS_MEMBER_ID']"'"; Any help would be appreciated. Eddy. Link to comment https://forums.phpfreaks.com/topic/212736-php-mysql-string-error/ Share on other sites More sharing options...
Pikachu2000 Posted September 7, 2010 Share Posted September 7, 2010 You left out the last concatenation operator . . . MEMBER_ID'] . "'"; EDIT: There are more than just that one missing. You need to double check all of the concatenation in that string. Link to comment https://forums.phpfreaks.com/topic/212736-php-mysql-string-error/#findComment-1108149 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.