Ich habe mir das phpBBlatest Modul geladen, um auf meiner Seite die Posts anzeigen zu können. Allerdings klappt das nciht soganz :-(

Hier mal die modphpBBlatest.php Datei:

<?
//phpbblatest//
// Version: 1.0
// Author : ??

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

$posts = "5";
$forum = "1";
$url = "http://jpm.my.linuxxsystems.de/forum/viewforum.php?f=1 | f=1";

// this is the forum you'd like to get the lasts 10 posts from, ie url
//http://forum.host.com/viewforum.php?f=1 | f=1
$dbhost = "localhost";
$dbuser = "web49";
$dbpass = "12345678";
$database = "usr_web49_1";
$db = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($database, $db) or die("Unable to select database!");

$result=mysql_query("SELECT topic_title, topic_id
FROM phpbb_topics where forum_id = '" . $forum . "' ORDER BY topic_last_post_id DESC LIMIT $posts");

while($row=mysql_fetch_array($result)){
$topic = substr($row['topic_title'], 0, 17) . "..";
echo '<a href="' . $url . '/viewtopic.php?topic=' . $row['topic_id'] . '">' . $topic . '</a><br>';
}
?>


Vielleicht weiß ja einer von euch, wo der Fehler liegt....
Ich habe schon alles was mir einfiel probiert, aber finde den Fehler nicht (muss aber dazu sagen, dass ich mich mit PHP nicht so gut auskenne und hier zB nicht die genaue Ahnung hatte was ich als Foren URL angeben sollte)

Freue mich über jede Hilfe :smile: