ich hab heut nacht die folgenden Mods installiert:
Info+Portal db
EasyMod db
Wer war da Mod
Emoticons db
Miniprofil
ICQ Chat
Übersicht über inaktive/aktive Mitglieder
AtlasMod
Das läuft auch alles soweit, nur hab ich ein Problem jetzt bemerkt.
Wenn ich das Profil änder will, erhalte ich folgende Fehlermeldung:
Could not update users table
DEBUG MODE
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 ''emotion' WHERE user_id = 1' at line 2
UPDATE phpbb_users SET user_email = 'Shadowrun-Online@gmx.net', user_icq = '', user_website = 'http://www.shadowrun-online.de', user_occ = '', user_from = 'NRW', user_interests = 'Shadowrun!', user_sig = '[img:fa5ccb44fa]http://www.mitglied.lycos.de/cfhstuff/G ... 7c9503.gif[/img:fa5ccb44fa]', user_sig_bbcode_uid = 'fa5ccb44fa', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 1, user_allowsmile = 1, user_allowhtml = 1, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 1, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y H:i', user_lang = 'german', user_style = 1, user_active = 1, user_actkey = '', user_emotion = $'emotion' WHERE user_id = 1
Line : 552
File : usercp_register.php
Hier ist die besagte Codepassage aus der usercp_register.php
Code: Alles auswählen
$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_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . ", user_emotion = $'emotion', user_long = '" . str_replace("\'", "''", $user_long) . "', user_lat = '" . str_replace("\'", "''", $user_lat) . "
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);