This feed does not validate.
In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.
help]
[<?php
include_once("$_SERVER[DOCUMENT_ROOT]/"."setup.php");
include_once("$_SERVER[DOCUMENT_ROOT]/"."function.php");
include_once("$_SERVER[DOCUMENT_ROOT]/"."classes.php");
$dt=new datafetch();
$link=connect();
$sql="select cat_caption from category_table where c_id=$cid";
$result=mysql_query($sql,$link);
$row=mysql_fetch_array($result);
$catcaption=$row[0];
$sql="select news_id from cat_news where c_id=$cid order by cn_id desc limit 0,15";
$result=mysql_query($sql,$link);
while($row=mysql_fetch_array($result))
{
$arr[]=$row[0];
}
$ids=implode(",",$arr);
$sql="select * from news_table where news_id in ($ids) order by news_id desc";
$result=mysql_query($sql,$link);
$dt=date("l, j F Y");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>
<rss version=\"2.0\">
<channel>
<title>
<![CDATA[
$catcaption
]]>
</title>
<link>http://www.cainindia.org</link>
<description>
<![CDATA[
$catcaption
]]>
</description>
<language>en-us</language>
<pubDate>$dt</pubDate>
<generator>CAinINDIA RSS Generator developed by Binarysoft Technologies</generator>
";
while($row=mysql_fetch_array($result))
{
echo "<item>
";
echo "<title>
<![CDATA[
".strip_tags($row["title"])."
]]>
</title>
";
echo "<description>
<![CDATA[
".substr(strip_tags($row["description"]),0,300)."...
]]>
</description>
";
$t=explode("-",$row["date"]);
$time=mktime(10,10,10,$t[1],$t[2],$t[0]);
$dt=date("l, j F Y",$time);
echo "<pubDate>$dt</pubDate>
<link>
<![CDATA[
".$row["link_url"]."
]]>
</link>
";
echo "</item>
";
}
echo "</channel>
";
echo "</rss>
";
?>