Okay, found it:
rss.php
<?php
header("Content-type: application/xml");
require'dbinit.php';
$content = "
<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
<rss version=\"2.0\">
<title>ReigningGames</title>
<description>A site dealing with all aspects of gaming</description>
<link>http://reigninggames.com</link>
<copyright>Copyright 2006+</copyright>
<webMaster>webmaster@reigninggames.com (ReigningGames)</webMaster>
<generator>RS Blogs</generator>
<channel>";
//WHERE open='1'
$query = mysql_query("SELECT * FROM topics ORDER BY tid DESC LIMIT 15");
while($result = mysql_fetch_array($query)){
$qtwo = mysql_query("SELECT * FROM posts WHERE nt = '1' AND tid = '" . $result['tid'] . "' LIMIT 1");
$row = mysql_fetch_array($qtwo);
$title = stripslashes(htmlentities(strip_tags($result['title'])));
$desc = stripslashes(htmlentities(strip_tags($row['content'],'ENT_QUOTES')));
$link = 'http://www.reigninggames.com/tests/mblog/index.php?bid=' . $result['bid'] . '&tid=' . $result['tid'] . '';
$time = strftime( "%a, %d %b %Y %T %Z" , $result['pubDate']);
$content .= "
<item>
<title><![CDATA[ " . $title . " ]]></title>
<description>" . $desc . "</description>
<link><![CDATA[" . $link . "]]></link>
<guid><![CDATA[" . $link . "]]></guid>
<pubDate>" . $time . "</pubDate>
</item>";
}
$content .="
</channel>
</rss>";
echo $content;
?>
It is pretty straight forward I think. Now, I am not positive it is as optimized as it could be. I made this back when I was just glad if it worked