عفوا اخوي عندك خطأ
طيب هذ هذا الكود الصحيح
	كود PHP:
	
<?php
$link = mysql_connect("localhost","root",""); 
mysql_select_db("newdb"); 
function xmlentities($string){
  return str_replace ( array ( '&', '"', "'", '<', '>', '\x92' ), array ( '&' , '"', ''' , '<' , '>', ''' ), $string );
}
header('Content-Type: text/xml');
echo '<?xml version="1.0" encoding="windows-1256"?>'. "\r\n";
echo '<rss version="0.91">'."\r\n";
echo "<channel>\r\n";
$result = mysql_query ("SELECT * FROM products");
while ($line = mysql_fetch_array($result))
{
$product = xmlentities($line['product']); 
echo "\t<item>\r\n";
echo "\t\t<title>$product</title>\r\n";
echo "\t\t<link></link>\r\n";
echo "\t\t<description></description>\r\n";
echo "\t</item>\r\n";
}
echo "</channel>\r\n";
echo "</rss>";
exit();
?>