טעות שלי.
הקוד המעודכן:
קוד:
<?php echo '<?xml version="1.0" encoding="windows-1255" ?>'; ?>
<rss version="2.0">
<channel>
<title>כותרת</title>
<description>תיאור</description>
<link>לינק</link>
<?
include('xxx.php');
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$top3 = "SELECT * FROM `xxx` ORDER BY xxx DESC LIMIT 0, 20";
$new3 = mysql_query($top3) or die(mysql_error());
while($rows3 = mysql_fetch_array($new3)){
?>
<item>
<title><? echo stripslashes($rows3['like']); ?></title>
<link>לינק</link>
<description>תיאור</description>
<pubDate>תאריך</pubDate>
<category>קטגוריה</category>
<author>מפרסם</author>
</item>
<?php
}
?>
</channel>
</rss>
ב- IE מציג: שגיאת קוד הזנה.