<? header('Content-type: text/xml'); ?><rss version="2.0"><channel><title>Atomic Contest</title><description>Online Contest Design and Fulfillment</description><link>http://www.atomiccontest.com</link><copyright>Copyright <?=DATE('Y');?> Atomic Contest.  All Rights Reserved.</copyright><?include("includes/config.php");$connection = mysql_connect($host, $user, $pass) or die (mysql_error());mysql_select_db($db) or die (mysql_error());$q="SELECT contest_id,contest_title,contest_dir,contest_description,UNIX_TIMESTAMP(contest_start_date) AS pubDate FROM contest ORDER BY pubDate DESC LIMIT 0,15";$doGet=mysql_query($q);while($result = mysql_fetch_array($doGet)){?>     <item>        <title> <?=htmlentities(strip_tags($result['contest_title'])); ?></title>        <description> <?=htmlentities(strip_tags($result['contest_description'],'ENT_QUOTES'));?></description>        <link>http://www.atomiccontest.com/contests/<?=$result['contest_dir'];?></link>        <pubDate> <?=strftime( "%a, %d %b %Y %T %Z" , $result['pubDate']); ?></pubDate>     </item><? } ?></channel></rss>