One more thing, Bass or PHP gurus! When I edit a users account via the ACP I now get this error message. Can you tell me where I am missing a parenthesis?
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'user_override_inbox_limit = NULL, user_override_sentbox_limit = NULL, user_overr' at line 2
My code:
Code: Select all
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . ", user_phoogle_map_center='" . str_replace($parens,"", $map_center) . "', user_phoogle_comment='" . str_replace("\'", "''", $phoocomm) . "', user_phoogle_icon='" . intval($phooicon) . "', user_phoogle_allow='" . intval($phoogle_allow) . "', user_phoogle_show_me='" . intval($show_me) . "' user_override_inbox_limit = $user_override_inbox, user_override_sentbox_limit = $user_override_sentbox, user_override_savebox_limit = $user_override_savebox
WHERE user_id = $user_id";
I think it's something to do with the order in which I placed the phoogle code there, as I had to still include my "user_override_" code which is another mod I run. If anyone can help I will be eternally grateful!