At present data on the database server is available for two item nodes only as the script is still on trial but the published page doesn't print any dynamic data defined in the item node.
The feed page (site.com/rssfeed/index.php) at this moment is a plain one with proper channel output which visitors can subscribe if they want.
The prototype of the correct syntax is as following:
<?php $db = new mysqli("a", "b", "c", "d");
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Test</title>
<description>Test Feed</description>
<link>http://site.com/rssfeed/</link>
<copyright>Your Copyright Information</copyright>
<atom:link href="http://site.com/rssfeed/" rel="self" type="application/rss+xml" />
<?php $query = "SELECT * FROM `table` ORDER BY `delimiter` DESC LIMIT 0,15";
$results = $db->query($query) or die(mysql_error());
$number = $results->num_rows;
for ($i = 1; $i <= $number; $i++) {
$row = $results->fetch_assoc();
$title = $row['title'];
$description = $row['description'];
$link = $row['link'];
$date = date("r", $row['date']);
?>
<item>
<title><?php echo $title; ?></title>
<description><?php echo $description; ?></description>
<link><?php echo $link; ?></link>
<pubDate><?php echo $date; ?></pubDate>
<?php /*?><guid><?php echo $link; ?></guid><?php */?>
</item>
<?php } ?>
</channel>
</rss>
<?php $db->close(); ?>
To check sql syntax error I've used
or die(mysql_error());
statement in it but the syntax seems work fine.