This is the code I am using:
<?php
include "global.php";
$query = "SELECT * FROM posts WHERE `approved`='1' ORDER BY time DESC";
$res = mysql_query($query) or die(mysql_error());
$xml_output = "<?xml version=\"1.0\"?>
";
$xml_output .= "<rss version=\"2.0\">
";
$xml_output .= "<channel>
";
while($row = mysql_fetch_assoc($res)){
$id = $row['id'];
$title = $row['title'];
$content = ShortenText($row['content'], 500);
$xml_output .= "\t<item>
";
$xml_output .= "\t\t<title>" . $title . "</title>
";
$content = str_replace("&", "&", $content);
$content = str_replace("<", "<", $content);
$content = str_replace(">", ">", $content);
$content = str_replace("\"", """, $content);
$xml_output .= "\t\t<description>" . $content . "</description>
";
$xml_output .= "\t\t<link>" . "http://projectstratos.com/post.php?id=" . $row['id'] . "</link>
";
$xml_output .= "\t</item>
";
}
$xml_output .= "</channel>
";
$xml_output .= "</rss>";
echo $xml_output;
?>
And it shows a blank rss feed page, why is this?