Seite 1 von 1

Nach langer Arbeit .. neu anmelden ...

Verfasst: 20.05.2003 13:55
von Icy Evil Fantasy
Also ich hoffe ihr könnt mir helfen ...
ich habe mein Portal nun endlich soweit gehackt und brauche nur noch den Style anpassen ... mache noch einen kleinen BETA-Test und siehe da ... ein Fehler ... die Registrierung funzt nicht mehr ?-(

Code: Alles auswählen

Could not insert data into users table

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near '1, '')' at line 2

INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_from_flag, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, 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,user_birthday, user_next_birthday_greeting , user_active, user_actkey) VALUES (3, 'tzu', 1053431090, 'd95e4410070c4817c026259e6d1d86dc', 'tzu@tzu.tzu', '', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 1, 'd.m.Y - H:i', 'german', 1, '0', 0, 1,'999999',''1, '')

Line : 605
File : C:\wampp2\htdocs\frozen-network\includes\usercp_register.php

Line 588 - 606 der usercp_register.php

Code: Alles auswählen

$sql = "INSERT INTO " . USERS_TABLE . "	(user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_from_flag, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, 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,user_birthday, user_next_birthday_greeting , user_active, user_actkey)
				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) . "', '$user_flag', '" . str_replace("\'", "''", $interests) . "', '" . 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, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, '$gender', 0, 1,'$birthday','$next_birthday_greeting'";
			if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
			{
				$user_actkey = gen_rand_string(true);
				$key_len = 54 - (strlen($server_url));
				$key_len = ( $key_len > 6 ) ? $key_len : 6;
				$user_actkey = substr($user_actkey, 0, $key_len);
				$sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
			}
			else
			{
				$sql .= "1, '')";
			}

			if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
			{
				message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
			}

Ich hoffe ihr findet den Fehler :cry:

Verfasst: 20.05.2003 14:28
von Mister_X
füge nach

Code: Alles auswählen

'$next_birthday_greeting'
ein Komma und ein Leerzeichen ein, also:

Code: Alles auswählen

'$next_birthday_greeting', 

Verfasst: 27.05.2003 01:39
von Icy Evil Fantasy
Großen Dank an euren Support ... hat gefunzt ... :D :D :D