openside("Ostatnie tematy z zewnetrznego forum phpBB"); $limit = 10; [color=red][b]$adr = 'Adres Strony/'; $con2 = dbconnect('HOST', 'USER_BAZY', 'HASLO_USERA', 'NAZWA_BAZY');[/b][/color] $result = dbquery("SELECT topic_id, topic_title, topic_poster FROM phpbb_topics ORDER BY topic_poster DESC LIMIT $limit"); while ($row = mysql_fetch_array($result)) { echo ' '; echo(substr($row['topic_title'],0,20)); echo ''; echo '
'; } dbconnect($db_host, $db_user, $db_pass, $db_name); closeside();