<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>blah</title>
		<link>http://z3.invisionfree.com/B2STrising/index.php</link>
		<description>tessssssst</description>

<?php

//Connect to the database here
require_once ('connect.php');

//Create the SELECT statement and execute it
$query = "SELECT *, DATE_FORMAT(article_date, '%a, %d %b %Y %T PST') AS article_pubdate FROM articles ORDER BY article_date LIMIT 5";
$result = mysql_query($query);

//Iterate over the rows to create each item
while ($row = mysql_fetch_array($result, MYSQL_ASSOC) {
echo '<item>
		<title>'.$row['article_title'].'</title>
		<link>'.$row['article_url'].'</link>
		<description>'.$row['article_text'].'</description>
		<author>'.$row['article_author'].'</author>
		<category>'.$row['article_category'].'</category>
		<pubDate>'.$row['article_pubdate'].'</pubDate>
		<source url="http://z3.invisionfree.com/B2STrising/index.php?showforum=4">new</source>
	</item>
}

?>
<atom:link href="http://www.lunar-progeny.net/rss.xml" rel="self" type="application/rss+xml" />
	</channel>
</rss>
