dzięki, ale nie wiem, u mnie to jakoś nie działa

może źle to wpisuje... skrypt wygląda tak:
<?php
$dbhost = 'localhost';
$dbname = 'nazwa_bazy';
$dbusername = 'user_bazy';
$dbpassword = 'haslo_bazy';
$forumpath = 'http://forum.smallville.pl';
$forumid = '17';
$posts = '5';
$emoticons = 'default';
$img_dir = 'Yelonero';
$topics = mysql_query ("select* from _ipb_topics where forum_id=".$forumid." order by start_date desc"); $numberPosts = mysql_query ("select* from _ipb_forums where id=".$forumid.""); if ($maxposts['topics']<$posts) {$posts=$maxposts['topics'];}
for ($i=0; $i <$posts; $i++)
{
$titleid = $topicrow["tid"];
$topictitle = ($topicrow["title"]);
$postq = mysql_query ("SELECT * FROM `_ipb_posts` where topic_id = ".$titleid." order by post_date"); $post = $postfetch["post"];
$authorid = $postfetch["author_id"];
$unixdate = $topicrow["start_date"];
$date = date("H:i, j F Y",$unixdate); $author = $topicrow["starter_name"];
// Zamiana utf-8 na iso-8859-2 (przy znacznikach html)
// Zmiana nazw dat z Angielskich na Polskie (niedokończyłem tego jeszcze)
echo ('<LINK REL="Stylesheet" HREF="http://forum.smallville.pl/style_images/newscss.css" TYPE="text/css"> <style type="text/css">
<!--
.style1 {
font-size: 14px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #009900;
}
.style2 {color: #000000}
-->
</style>
<table width="95%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td colspan="2" class="style1"><a href="http://forum.smallville.pl/index.php?showtopic='.$titleid.'">'.$topictitle.'</a></td>
</tr>
<tr>
<td colspan="2" class="style2"><div align="justify">'.$post.'<br />
<br />
</div></td>
</tr>
<tr>
<td align="left" valign="middle" class="style2"><a href="http://forum.smallville.pl/index.php?showuser='.$authorid.'.php">'.$author.'</a> @ '.$date.'</td>
<td align="right" valign="middle" class="style2"><a href="http://forum.smallville.pl/index.php?showtopic='.$titleid.'"><img src="images/print.gif" border="0" alt=""> Komentarze</a></td>
</tr>
</table>
<hr><br />');
}
?>
Gdzie powinienem to wstawic?
Pozdrawiam