Sorry

This feed does not validate.

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

Source: http://feeds.feedburner.com/cainindia/zpOr

  1. <?php
  2. include_once("$_SERVER[DOCUMENT_ROOT]/"."setup.php");
  3. include_once("$_SERVER[DOCUMENT_ROOT]/"."function.php");
  4. include_once("$_SERVER[DOCUMENT_ROOT]/"."classes.php");
  5. $dt=new datafetch();
  6. $link=connect();
  7.  
  8. $sql="select cat_caption from category_table where c_id=$cid";
  9. $result=mysql_query($sql,$link);
  10. $row=mysql_fetch_array($result);
  11. $catcaption=$row[0];
  12.  
  13.  
  14.  
  15. $sql="select news_id from cat_news where c_id=$cid order by cn_id desc limit 0,15";
  16. $result=mysql_query($sql,$link);
  17. while($row=mysql_fetch_array($result))
  18. {
  19. $arr[]=$row[0];
  20. }
  21. $ids=implode(",",$arr);
  22. $sql="select * from news_table where news_id in ($ids) order by news_id desc";
  23. $result=mysql_query($sql,$link);
  24. $dt=date("l, j F Y");
  25. echo "<?xml version=\"1.0\"  encoding=\"ISO-8859-1\"?>
  26. <rss version=\"2.0\">
  27. <channel>
  28. <title>
  29. <![CDATA[
  30. $catcaption
  31. ]]>
  32. </title>
  33. <link>http://www.cainindia.org</link>
  34. <description>
  35. <![CDATA[
  36. $catcaption
  37. ]]>
  38. </description>
  39. <language>en-us</language>
  40. <pubDate>$dt</pubDate>
  41. <generator>CAinINDIA RSS Generator developed by Binarysoft Technologies</generator>
  42. ";
  43.  
  44. while($row=mysql_fetch_array($result))
  45. {
  46. echo "<item>
  47. ";
  48. echo "<title>
  49. <![CDATA[
  50. ".strip_tags($row["title"])."
  51. ]]>
  52. </title>
  53. ";
  54. echo "<description>
  55. <![CDATA[
  56. ".substr(strip_tags($row["description"]),0,300)."...
  57. ]]>
  58. </description>
  59. ";
  60. $t=explode("-",$row["date"]);
  61. $time=mktime(10,10,10,$t[1],$t[2],$t[0]);
  62. $dt=date("l, j F Y",$time);
  63. echo "<pubDate>$dt</pubDate>
  64. <link>
  65. <![CDATA[
  66. ".$row["link_url"]."
  67. ]]>
  68. </link>
  69. ";
  70. echo "</item>
  71. ";
  72. }
  73. echo "</channel>
  74. ";
  75. echo "</rss>
  76. ";
  77. ?>
  78.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda