Falscher Code

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Kewwwin

Falscher Code

Beitrag von Kewwwin »

Kann mir jemand sagen, was hier falsch ist??? Ich komme nicht drauf

Code: Alles auswählen

				VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', $profile_view_popup, $disallow_profile_search, '" . '", . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, '" . str_replace("\'", "''", $sig_offline) . "', '" . str_replace("\'", "''", $sig_online) . "'
Danke
Dave
Mitglied
Beiträge: 2085
Registriert: 25.05.2003 15:03
Wohnort: Wuppertal

Beitrag von Dave »

Wäre nett wenn du das komplette query gepostet hättest weil jetzt kann ich dir nur die stelle sagen wo der fehler ist und keine lösung ;)

Code: Alles auswählen

$disallow_profile_search, '" . '", . str_replace("\'", "''", $signature) . "', 
beim

Code: Alles auswählen

 '" . "',
würde ich sagen das da entweder der teil zuviel ist oder ne variable fehlt und bei

Code: Alles auswählen

, . str_replace
würde ich sagen das derda nicht hin gehört ;)

MfG
Dave
Kewwwin

Beitrag von Kewwwin »

Code: Alles auswählen

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /hp/af/ac/vc/www/Forum/includes/usercp_register.php on line 1216
Kommt als Fehler

[EDIT] Diese Zeile ist natürlich 1216. habe einige Wöter vergessen mit zumarkieren. Das ist der Ganze Text

Code: Alles auswählen

            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', $profile_view_popup, $disallow_profile_search, '" . '", . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, '" . str_replace("\'", "''", $sig_offline) . "', '" . str_replace("\'", "''", $sig_online) . "', '$birthday', '$next_birthday_greeting', ";
Dave
Mitglied
Beiträge: 2085
Registriert: 25.05.2003 15:03
Wohnort: Wuppertal

Beitrag von Dave »

Du sollst das GANZE query posten. weil das ist wieder nur die hälfte und ich kann nur das feststellen was ich im letzten post schon gesagt habe :wink:

MfG
Dave
Kewwwin

Beitrag von Kewwwin »

Dave
Mitglied
Beiträge: 2085
Registriert: 25.05.2003 15:03
Wohnort: Wuppertal

Beitrag von Dave »

Hi
Suche:

Code: Alles auswählen

$disallow_profile_search, '" . '", . str_replace("\'", "''", $signature) . "'
Ersetze mit:

Code: Alles auswählen

$disallow_profile_search, '" . str_replace("\'", "''", $signature) . "'
MfG
Dave
Kewwwin

Beitrag von Kewwwin »

Danke. hat funktioniert. Falls es nochmal Probleme gibt, melde ich mich
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“