<? header('Content-type: text/xml'); ?>
<rss version="2.0">
<channel>
<title>Text Mates</title>
<description>Free articles and content for your sites</description>
<link>http://www.txt-m8s.com/</link>
<copyright>Use everything on the site!</copyright>

<?
$q="SELECT number,title,article,UNIX_TIMESTAMP(date) AS date
FROM isnare LIMIT 0,15 ORDER BY date DESC";
$doGet=mysql_query($q);

while($result = mysql_fetch_array($doGet)){
?>
     <item>
        <title> <?=htmlentities(strip_tags($result['title'])); ?></title>
        <description> <?=htmlentities(strip_tags($result['article'],'ENT_QUOTES'));?></description>
        <link>http://www.txt-m8s.com/article/title/<?=$result['number'];?>/</link>
        <pubDate> <?=strftime( "%a, %d %b %Y %T %Z" , $result['date']); ?></pubDate>
     </item>  
<? } ?>  

</channel>
</rss>

