\n"; $ilet=0; $threads = dbquery("SELECT a.forum_id, b.thread_id, thread_lastpostid, thread_subject, thread_lastpost, thread_lastuser, thread_postcount FROM ".DB_FORUMS." a INNER JOIN ".DB_THREADS." b ON a.forum_id=b.forum_id INNER JOIN ".DB_POSTS." c ON b.thread_lastpostid=c.post_id INNER JOIN ".DB_USERS." d ON b.thread_lastuser=d.user_id WHERE ".groupaccess('a.forum_access')." ORDER BY b.thread_lastpost DESC LIMIT 0,12"); while($data = dbarray($threads)){ $ilet++; echo"
".$data['thread_postcount']." odp.
\n"; } if($ilet==0){ echo"
Brak tematów
\n"; } echo"
Full Metal Alchemist Brotherhood 44 pl
\n"; ?>