Seite 1 von 1

Fehler beim moderieren des Forums

Verfasst: 25.01.2004 21:28
von Schwarzer-Schlumpf
Also ich habe folgendes Problem.

Ich habe auf du kannst dieses Forum moderieren geklickt. Das ging, doch wenn ich dann auf ein Thema klicke kommt folgendes:
Could not get topic/post information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near '// ADDED pt.quiz_answer, WITH Quiz Hack p.post_username FROM ph' at line 2

SELECT u.username, p.*, pt.post_text, pt.bbcode_uid, pt.post_subject, pt.quiz_answer, // ADDED pt.quiz_answer, WITH Quiz Hack p.post_username FROM phpbb2_posts p, phpbb2_users u, phpbb2_posts_text pt WHERE p.topic_id = 439 AND p.poster_id = u.user_id AND p.post_id = pt.post_id ORDER BY p.post_time ASC

Line : 892
File : /raid/domains/de/d/die-moewen/htdocs/asgard/phpBB2/modcp.php
Was ist falsch??

Verfasst: 25.01.2004 21:56
von PhilippK
Sieht nach 'nem falsch eingebauten Mod aus. Poste doch mal die Zeilen 880-895 der modcp.php

Gruß, Philipp

Verfasst: 25.01.2004 21:59
von Schwarzer-Schlumpf



$sql = "SELECT u.username, p.*, pt.post_text, pt.bbcode_uid, pt.post_subject, pt.quiz_answer,
// ADDED pt.quiz_answer, WITH Quiz Hack
p.post_username
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
AND p.poster_id = u.user_id
AND p.post_id = pt.post_id
ORDER BY p.post_time ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get topic/post information', '', __LINE__, __FILE__, $sql);
}


So das sollten sie sein...

Verfasst: 25.01.2004 22:02
von PhilippK
Dann entfern mal die Zeile

Code: Alles auswählen

// ADDED pt.quiz_answer, WITH Quiz Hack 
Gruß, Philipp

Verfasst: 25.01.2004 22:04
von Schwarzer-Schlumpf
Cool danke.... das wars... komisch obwohl es nen Kommentar war

Verfasst: 25.01.2004 22:18
von PhilippK
Schwarzer-Schlumpf hat geschrieben:Cool danke.... das wars... komisch obwohl es nen Kommentar war
'nen Kommentar in 'nem String - das geht nicht :-D

Gruß, Philipp

Verfasst: 27.01.2004 14:46
von Schwarzer-Schlumpf
Das ist wohl war.... War halt zu blind