Pagina 1 van 1

Een fout

Geplaatst: 16 jan 2004, 20:44
door Dubock87
Wat moet ik veranderen om deze fout te verhelpen? Het heeft met prive berichten te maken. Ik heb wel een aantal mods geinstalleerd maar hoe kan ik dit probleem verhelpen?
Could not query private message post information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'pm.*, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text FROM phpbb_privmsgs pm, phpbb' at line 1

SELECT u.username AS username_1, u.user_id AS user_id_1, u2.username AS username_2, u2.user_id AS user_id_2, u.user_sig_bbcode_uid, u.user_posts, u.user_from, u.user_website, u.user_email

Geplaatst: 16 jan 2004, 20:49
door Stef
Volgens mij is dit niet je gehele foutmelding.
Heb je ook al je laatste mod nagelopen?

Geplaatst: 16 jan 2004, 20:50
door Dubock87
in deze regel moet de fout staan. Iemand een idee regel 246 zit de fout :S

$sql = "SELECT u.username AS username_1, u.user_id AS user_id_1, u2.username AS username_2, u2.user_id AS user_id_2, u.user_sig_bbcode_uid, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_avatar, u.user_allow_viewonline AS user_allow_viewonline_1, u2.user_allow_viewonline AS user_allow_viewonline_2, u.user_session_time AS user_session_time_1, u2.user_session_time AS user_session_time_2 pm.*, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text
FROM " . PRIVMSGS_TABLE . " pm, " . PRIVMSGS_TEXT_TABLE . " pmt, " . USERS_TABLE . " u, " . USERS_TABLE . " u2
WHERE pm.privmsgs_id = $privmsgs_id
AND pmt.privmsgs_text_id = pm.privmsgs_id
$pm_sql_user
AND u.user_id = pm.privmsgs_from_userid
AND u2.user_id = pm.privmsgs_to_userid";
if ( !($result = $db->sql_query($sql)) )

Geplaatst: 16 jan 2004, 20:53
door Stef
Heb je je laatste mod nagelopen?

Geplaatst: 16 jan 2004, 20:55
door Dubock87
jup ik zal hier het stukje laten zien wat ik heb moeten veranderen:

Code: Selecteer alles

#
#-----[ OPEN ]------------------------------------------
#
privmsg.php

#
#-----[ FIND ]------------------------------------------
#
	//
	// Major query obtains the message ...
	//
	$sql = "SELECT u.username

#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_avatar

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, u.user_allow_viewonline AS user_allow_viewonline_1, u2.user_allow_viewonline AS user_allow_viewonline_2, u.user_session_time AS user_session_time_1, u2.user_session_time AS user_session_time_2

Code: Selecteer alles

	//
	// Major query obtains the message ...
	//
	$sql = "SELECT u.username AS username_1, u.user_id AS user_id_1, u2.username AS username_2, u2.user_id AS user_id_2, u.user_sig_bbcode_uid, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_avatar,u.user_allow_viewonline AS user_allow_viewonline_1, u2.user_allow_viewonline AS user_allow_viewonline_2, u.user_session_time AS user_session_time_1, u2.user_session_time AS user_session_time_2 pm.*, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text
		FROM " . PRIVMSGS_TABLE . " pm, " . PRIVMSGS_TEXT_TABLE . " pmt, " . USERS_TABLE . " u, " . USERS_TABLE . " u2 
		WHERE pm.privmsgs_id = $privmsgs_id
			AND pmt.privmsgs_text_id = pm.privmsgs_id 
			$pm_sql_user 
			AND u.user_id = pm.privmsgs_from_userid 
			AND u2.user_id = pm.privmsgs_to_userid";
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not query private message post information', '', __LINE__, __FILE__, $sql);
	}
Zie jij de fout?

Geplaatst: 16 jan 2004, 23:15
door Podium4
Zoek dit stukje in de nieuwe code:

Code: Selecteer alles

u.user_avatar,u.user_allow_viewonline AS user_allow_viewonline_1,
En maak er dit van:

Code: Selecteer alles

u.user_avatar, u.user_allow_viewonline AS user_allow_viewonline_1,