Скидываю полностью.
<?php
header("content-type: application/rss+xml");
include 'connect.php';
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";?>
<rss version="2.0">
<channel>
<title>RSS</title>
<link>http:/..</link>
<description>Последние Объявления на ...</description>
<language>en-us</language>
<?php
$sql="SELECT *,unix_timestamp(add) AS `Ad` FROM `list` WHERE `sale_of`='1' AND `on_of`='1' AND `Mn`<30 ORDER BY `rate` DESC, `add` DESC LIMIT 0,30;";
$result=mysql_query($sql,$con) or die ('errors found');
$rows=mysql_num_rows($result);
if($rows > 0){
while($row = mysql_fetch_assoc($result)){
$row["i_path"]!='' ? $ia=explode(',',$row["i_path"]) : $ia[0]='nf.gif';
?>
<item>
<title><?php echo $row["s_title"];?></title>
<link>http:/..</link>
<description></description>
<?php
$upd = date('d m Y',$row["Add"]);
echo "<pubDate>$upd</pubDate>";
echo '<guid>http:/..</guid>';
?>
</item>
<?php
}
}
?>
</channel>
</rss>