[Help] RSS

Murder

New Member
Joined
Apr 21, 2008
Messages
502
Reaction score
74
искам някой да ми помогне да го подкарам това RSS ето кода

PHP:
<?php
error_reporting(0);  
mssql_connect('127.0.0.1','sa','941214');
mssql_select_db('MuOnline');

$rs=mssql_query('SELECT  * FROM News ');
$rss='<?xml version="1.0" encoding="UTF8" ?>
<rss version="2.0">
   <channel>
   
   <title>Delux Muonline News</title>
   <link>http://89.25.23.89/</link>
   <pubDate>'.date('d/m/Y').'</pubDate>
   <ttl>60</ttl>
    ';
while($row=mssql_fetch_assoc($rs))
{
   $rss.='
         <item>
         <title>'.$row['title'].'</title>
         <link>http://89.25.23.89/index.php?op=news&id='.$row['id'].'</link>
         <description>'.$row['novinata'].'</description>
         <pubDate>'.date('d/m/Y',$row['date']).'</pubDate>
         </item>
         ';
}
$rss.='
   </channel>
</rss>
';
echo $rss;
?>