Php 我能';我的rss没有看到任何描述?

Php 我能';我的rss没有看到任何描述?,php,rss,Php,Rss,我的rss有这段代码,但当我把它添加到任何rss阅读器时 比如说outlook。。。。我看不到描述。 我只看到了标题和链接 这是我的代码: <?php // Database settings include("config.php"); @header('(anti-spam-(anti-spam-(anti-spam-(anti-spam-content-type:)))) text/xml'); // Must declare the content type ec

我的rss有这段代码,但当我把它添加到任何rss阅读器时 比如说outlook。。。。我看不到描述。 我只看到了标题和链接

这是我的代码:

<?php 


// Database settings 


include("config.php");


@header('(anti-spam-(anti-spam-(anti-spam-(anti-spam-content-type:)))) text/xml'); // Must declare the content type 
echo '<?xml version=\'1.0\' encoding=\'UTF-8\'?>'; 

$name_site="test ";

$dat = date("j/n/Y",time());

// Set RSS version. 


echo ' 
<rss version=\'2.0\'> '; 





// Start the XML. 





echo " 
<channel>"; 

echo "<title>".$name_site." RSS</title>\n";
echo "<link>".$pathsite."</link>\n";
echo "<description>test</description>\n";
echo "<date>".$dat."</date>\n";



$url=$_SERVER['SERVER_NAME'];


$data = mysql_query("select * FROM  `vacancies`  order by id desc limit 50"); 
while($row = mysql_fetch_array($data)) 
{ 




echo " 
<item> 
<title>$row[entitle]</title> 
<description>$row[entxt]</description> 
<date>$row[date]</date> 
<link>http://$url/showjob.$row[id].html</link>

</item>"; 
} 





echo ' 
</channel> 
</rss>'; 
?> 


任何帮助请显示完整的描述

在while循环中,您在双引号中使用了
$row[authentice]
。由于您没有引用
authentice
$row[authentice]
将变成
$row
并通过
[authentice]
作为字符串追加。这将在输出处产生
数组[authentice]


您需要做的是使用
{$row['authentice']}
表示变量。”表示键。

这些是一些可笑的换行符。你只是看不到文本,或者返回给客户端的XML中缺少了文本?我按照你告诉我的做。但是Shiplu先生不工作……我的rss工作很好,但我的问题是“全文与html elment类似的图像,href和..等等“不加载。。。在$r['entext']..@SamiloxSamilox中,在description标记中插入html。您需要寄上它,或者附上谢谢您,希普鲁先生$行['entxt']=stripslashes($row['entxt'])$行['entxt']=htmlspecialchars($row['entxt']);没关系!