Verfasst: 11.02.2003 23:10
öhm aber das gehört doch zur original search.php das habe ich net eingefügt, kann man das denn einfach so entfernen ohne das es irgendwelche anderen funktionen beeinträchtigt?
Grüße JLoop
Grüße JLoop
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Hier nochmal die aktuelle search.php: search.txtCould not obtain search results
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'GROUP BY t.topic_id' at line 8
SELECT t.*, f.forum_id, f.forum_name, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time , AVG(rating) AS rating FROM phpbb_topics t, phpbb_forums f, phpbb_users u, phpbb_posts p, phpbb_posts p2, phpbb_users u2 LEFT JOIN phpbb_rate_results r ON r.topic_id = t.topic_id WHERE t.topic_id IN (87, 88, 89, 91, 93, 108, 114, 116, 118) AND t.topic_poster = u.user_id AND f.forum_id = t.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND u2.user_id = p2.poster_id ORDER BY IF(rating = NULL, 0, rating) DESC, p2.post_time GROUP BY t.topic_id
Line : 795
File : search.php
aber du hast den code nicht danach eingefügt sondern den zu findenden code ersetzt... also musst du jetzt vorsaerdnaer hat geschrieben:suchen:danach einfügen:Code: Alles auswählen
$sql .= " $sort_dir LIMIT $start, " . $per_page;
Code: Alles auswählen
$sql .= ' ' . $toh_sql3; // ADDED BY order by rating
Code: Alles auswählen
$sql .= ' ' . $toh_sql3; // ADDED BY order by rating
Code: Alles auswählen
$sql .= " $sort_dir LIMIT $start, " . $per_page;
Woran kann das liegen?Could not obtain search results
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'GROUP BY t.topic_id' at line 8
SELECT t.*, f.forum_id, f.forum_name, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time , AVG(rating) AS rating FROM phpbb_topics t, phpbb_forums f, phpbb_users u, phpbb_posts p, phpbb_posts p2, phpbb_users u2 LEFT JOIN phpbb_rate_results r ON r.topic_id = t.topic_id WHERE t.topic_id IN (87, 88, 89, 91, 93, 100, 108, 114, 116, 118) AND t.topic_poster = u.user_id AND f.forum_id = t.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND u2.user_id = p2.poster_id ORDER BY IF(rating = NULL, 0, rating) DESC, p2.post_time DESC LIMIT 0, 50 GROUP BY t.topic_id
Line : 796
File : search.php
Code: Alles auswählen
$sql .= " $sort_dir LIMIT $start, " . $per_page;
$sql .= ' ' . $toh_sql3; // ADDED BY order by rating
Code: Alles auswählen
$sql .= " $sort_dir $toh_sql3 LIMIT $start, " . $per_page; // ADDED $toh_sql3 BY order by rating
Grüße JLoopCould not obtain search results
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'GROUP BY t.topic_id LIMIT 0, 50' at line 8
SELECT t.*, f.forum_id, f.forum_name, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time , AVG(rating) AS rating FROM phpbb_topics t, phpbb_forums f, phpbb_users u, phpbb_posts p, phpbb_posts p2, phpbb_users u2 LEFT JOIN phpbb_rate_results r ON r.topic_id = t.topic_id WHERE t.topic_id IN (87, 88, 89, 91, 93, 100, 108, 114, 116, 118) AND t.topic_poster = u.user_id AND f.forum_id = t.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND u2.user_id = p2.poster_id ORDER BY IF(rating = NULL, 0, rating) ASC, p2.post_time ASC GROUP BY t.topic_id LIMIT 0, 50
Line : 795
File : search.php
Code: Alles auswählen
$sql .= " $sort_dir $toh_sql3 LIMIT $start, " . $per_page; // ADDED $toh_sql3 BY order by rating
Code: Alles auswählen
$sql .= " $sort_dir LIMIT $start, " . $per_page;
Code: Alles auswählen
$sql .= " ORDER BY ";
Code: Alles auswählen
$sql .= $toh_sql3; // ADDED BY order by rating