php - RSS Feed Reader Shown error while uploading feeds -


today create first rss feed. face problem while uploading rss in rss reader "desktop ticker". when add mu rss url show me error " badly formed xml document: can please check code? , me please. thank you.

   <?php include_once'connect.php'; header ('content-type: text/xml: charset="iso-8859-1"');  echo '<?xml version="1.0" encoding="iso-8859-1"?>';  ?>  <rss version="2.0"> <channel> <title> pacra rss feed </title> <link> http://www.pacra.com </link> <description>pacra pakistan </description>  <?php $query = "select og_ratings.client_id, og_ratings.press_release, og_ratings.dissemination_date, og_companies.name og_ratings  left join og_companies on og_ratings.client_id = og_companies.id order dissemination_date desc limit 10"; $result = mysql_query ($query) or die ("could not execut query");   while($row=mysql_fetch_assoc($result)){     $cid = $row ['client_id'];     $cname = $row ['name'];     $pr = $row ['press_release'];     $dd = $row ['dissemination_date'];         ?>        <item>      <title> <?php echo $cname; ?></title>      <description> <?php echo $cname; ?></description>           <link><?php echo "http://192.172.100.4/pacra/".$pr; ?></link>        </item>      <?php  }  ?>   </channel> </rss> 

here generated xml

<?xml version="1.0" encoding="iso-8859-1"?> <rss version="2.0"> <channel> <title> pacra rss feed </title> <link> http://www.pacra.com </link> <description>pacra pakistan </description>         <item>      <title> pakistan income fund</title>      <description> pakistan income fund</description>           <link>http://192.172.100.4/pacra/uploads/press_release/pif_pr_20feb14.pdf</link>        </item>        <item>      <title> pakistan income enhancement fund</title>      <description> pakistan income enhancement fund</description>           <link>http://192.172.100.4/pacra/uploads/press_release/pief_pr_20feb14.pdf</link>        </item>        <item>      <title> mcb islamic income fund</title>      <description> mcb islamic income fund</description>           <link>http://192.172.100.4/pacra/uploads/press_release/mcbiif_pr_20feb14.pdf</link>        </item>        <item>      <title> mcb cash management optimizer fund</title>      <description> mcb cash management optimizer fund</description>           <link>http://192.172.100.4/pacra/uploads/press_release/mcb cmop_pr_20feb14.pdf</link>        </item>   </channel> </rss> 


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -