Sry, aber ab dem JOIN stimmt da nicht mehr viel! Richtiger (weil ungetestet) wärePatch hat geschrieben:ich hoffe bloß das der code nach der erstzung bei dir so aussiehtdenn dann klappt das wunderbarCode: Alles auswählen
$sql = 'SELECT DISTINCT t.topic_title, t.topic_id, t.forum_id,t.topic_replies, f.auth_view FROM '.TOPICS_TABLE.' t left join '.FORUMS_TABLE.' f on f.forum_id = t.forum_id where auth_view < 1 ORDER BY t.topic_title';
Code: Alles auswählen
$sql = 'SELECT DISTINCT t.topic_title, t.topic_id, t.forum_id,t.topic_replies, f.auth_view FROM '.TOPICS_TABLE.' t left join '.FORUMS_TABLE.' f on t.forum_id = f.forum_id where f.auth_view < 1 ORDER BY t.topic_title';