Can any see why Magpie RSS won't accept this RSS Feed (that is valid
according to the Feed Validator website).
http://www.westyorksprobation.org.uk...p?type=Library
This is the code that generates it. A SQL query is run first into
$result and then:
if (mysql_num_rows ($result)>0)
{
header("Content-Type: application/xml; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\r\n";
echo " <rss version=\"2.0\" >\r\n";
echo "\r\n";
echo " <channel>\r\n ";
echo " <title>" . htmlspecialchar s($title) . "</title>\r\n";
echo " <link>".htmlspe cialchars("http ://
www.westyorkspr obation.org.uk/")."</link>\r\n";
echo " <description>RS S Feed for the " . htmlspecialchar s($title) .
"</description>\r\ n";
echo " <language>en-gb</language>\r\n";
echo " <lastBuildDate> " . date("D, d M Y H:i:s O",time()) . "</
lastBuildDate>\ r\n";
echo " <ttl>60</ttl>\r\n";
echo " <copyright>Copy right " . date("Y",time() ) . " West Yorkshire
Probation Board</copyright>\r\n" ;
while($resultsr ow=mysql_fetch_ row($result))
{
echo " <item>\r\n";
echo " <title>" . htmlspecialchar s($resultsrow[0]) . "</title>\r
\n";
echo " <description> " .
htmlspecialchar s(strip_tags(su bstr($resultsro w[1],0,500))) . "...</
description>\r\ n";
echo " <link>";
echo htmlspecialchar s("http://www.westyorkspr obation.org.uk/
library.php?act ion=accsearch&s tring=".$result srow[3]);
echo" </link>\r\n";
echo " <guid isPermaLink=\"t rue\">";
echo htmlspecialchar s("http://www.westyorkspr obation.org.uk/
library.php?act ion=accsearch&s tring=".$result srow[3]);
echo" </guid>\r\n";
echo " <pubDate>" . date("D, d M Y H:i:s
O",strtotime($r esultsrow[2])) . "</pubDate>\r\n";
echo " </item>\r\n";
echo "\r\n";
}
echo " </channel>\r\n";
echo " </rss>\r\n";
}
include("includ es/disconnect.php" );
exit;