SQL Error : 1136 Column count doesn't match...etc
Verfasst: 16.11.2005 14:15
Hi,
ich habe leider bisher noch nie mit php zu tun gehabt. Ich habe jetzt in Eigenregie versucht, die Topics für die Registrierung zu ändern. Jetzt gibt er mir die Fehlermeldung SQL Error 1136 raus. Irgendwie seh ich gerade kein Land mehr. Kann mir jemand helfen??? Ich habe mir die anderen Posts des Forums auch schon durchgesehen, bin aber irgendwie nicht weitergekommen. Bin ich zu dooof???
Die Fehlermeldung lautet:
Der Code in meiner usercp_register.php-datei lautet
Grazie im Voraus.
ich habe leider bisher noch nie mit php zu tun gehabt. Ich habe jetzt in Eigenregie versucht, die Topics für die Registrierung zu ändern. Jetzt gibt er mir die Fehlermeldung SQL Error 1136 raus. Irgendwie seh ich gerade kein Land mehr. Kann mir jemand helfen??? Ich habe mir die anderen Posts des Forums auch schon durchgesehen, bin aber irgendwie nicht weitergekommen. Bin ich zu dooof???
Die Fehlermeldung lautet:
Code: Alles auswählen
Could not insert data into users table
DEBUG MODE
SQL Error : 1136 Column count doesn't match value count at row 1
INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_praxis, user_strasse, user_plz, user_ort, user_telefon, user_telefax, user_vorname, user_nachname, user_titel, user_fachbereich, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_gender, user_level, user_allow_pm, status_offline_text, status_online_text, user_active, user_actkey) VALUES (5, 'test', 1132146128, '098f6bcd4621d373cade4e832627b4f6', 'test@test.de', '', 'textstrasse', 'textplz', 'textort', '', 'texttelefax', 'textvorname', 'textnachname', 'testtitel', 'textfachbereich', 'textsignatur', '830da91d26', '', 0, 1, '', 1, 1, 0, 1, 1, 0, 1, 1, 0, 'd.m.Y H:i', 'german', 1, '', 0, 1, '', '', 0, '4e7663ab094ca')
Line : 645
File : usercp_register.phpCode: Alles auswählen
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_praxis, user_strasse, user_plz, user_ort, user_telefon, user_telefax, user_vorname, user_nachname, user_titel, user_fachbereich, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_gender, user_level, user_allow_pm, status_offline_text, status_online_text, user_active, user_actkey)
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" .
str_replace("\'", "''", $email) . "', '" .
str_replace("\'", "''", $praxis) . "', '" .
str_replace("\'", "''", $strasse) . "', '" .
str_replace("\'", "''", $plz) . "', '" .
str_replace("\'", "''", $ort) . "', '" .
str_replace("\'", "''", $telefon) . "', '" .
str_replace("\'", "''", $telefax) . "', '" .
str_replace("\'", "''", $vorname) . "', '" .
str_replace("\'", "''", $nachname) . "', '" .
str_replace("\'", "''", $titel) . "', '" .
str_replace("\'", "''", $fachbereich) . "', '" .
str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" .
str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, '$gender', 0, 1, '" . str_replace("\'", "''", $sig_offline) . "', '" . str_replace("\'", "''", $sig_online) . "', ";
if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )