I upgraded to the latest php code provided here and I am getting the following error: "error on line 38 at column 78: EntityRef: expecting ';'"
Below is the php I am using:
<?php header("Content-Type: application/xml; charset=ISO-8859-1"); echo '<?xml version="1.0" encoding="ISO-8859-1"?'.'>'."\n"; echo '<rss version="2.0">'."\n"; echo '<channel>'."\n"; define("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php");
global $CONFIG;
echo '<title>'.$CONFIG['CompanyName'].' Knowledgebase Feed</title>'; echo '<description>'.$CONFIG['CompanyName'].' Knowledgebase Feed created by WHMCS Knowledgebase RSS addon module.</description>'; echo '<link>'.$CONFIG['SystemURL'].'</link>';
if (isset($_REQUEST['catid'])) { //Show this category $query = "SELECT * FROM `tblknowledgebase`,`tblknowledgebaselinks` WHERE `tblknowledgebaselinks`.`articleid` = `tblknowledgebase`.`id` AND `tblknowledgebaselinks`.`categoryid`=".(int)$_REQUEST['catid']." ORDER BY `tblknowledgebase`.`id` DESC"; } else { //Show all categories $query = "SELECT * FROM tblknowledgebase ORDER BY `id` DESC"; } $result = full_query($query);
while ($data = mysql_fetch_assoc($result)) { echo '<item>'."\n"; echo '<title>'.$data['title'].'</title>'."\n"; echo '<description>'.strip_tags(substr($data['article'],0,140)).'</description>'."\n";
if($seourls){ echo '<link>'.$CONFIG['SystemURL'].'knowledgebase/'.$data['id'].'/'.getmodrewritefriendlystring($data['title']).'.html</link>'."\n"; }else{ echo '<link>'.$CONFIG['SystemURL'].'knowledgebase.php?action=displayarticle&id='.$data['id'].'</link>'."\n"; }//if
echo '</item>'."\n"; }//while
echo '</channel>'."\n"; echo '</rss>'."\n"; ?>