<?
print"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>
<?xml-stylesheet type=\"text/css\" href=\"http://www.aneki.com/rss/rss.css\" ?>
";
?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Aneki.com - Home</title>
<link>http://www.aneki.com</link>
<description>Latest updates from Aneki.com World Rankings</description>
<atom:link href="http://www.aneki.com/rss/rss2.xml" rel="self" type="application/rss+xml" />
<?
$link=mysql_connect("localhost","aneki_anekidb","?BL}fDvH_tZk");mysql_select_db("aneki_anekidbase");
$query1="SELECT * FROM updates where date> '2013-07-10' ORDER BY date DESC";
//$query1="SELECT * FROM updates ORDER BY date DESC";
$results1=mysql_query($query1);
while (($line = mysql_fetch_array($results1))  )
{
$id=$line[0];
$title=htmlspecialchars($line[1], ENT_COMPAT,'ISO-8859-1', true);
//$body=$line[2];
$body=htmlspecialchars(stripslashes($line[2]), ENT_COMPAT,'ISO-8859-1', true);
$url=htmlspecialchars($line[3]);
$image_url=$line[4];
$source=$line[5];
$category=$line[6];
$date_time=$line[7];

$date = new DateTime($line[7]);


$formatted_date_time2=$date->format('Y-m-d H:i:s');

$formatted_date_time=date('D, d M Y H:i:s T',strtotime($date_time));
$imageCode="";
if($image_url!=null)
{$imageCode="<img style=\"border: 0 none;float:left;margin:0 15px 15px 0; max-

height:150px; max-width:170px; position:relative;\" src=\"$image_url\">";}
if(strpos($url,"http")===false)
{$url="http://www.aneki.com/".$url;}
//if(3>2)
if(strpos($url,"aneki.com")!=false)
{
print"<item>";
print"<title>";
print"$title";
print"</title>";
print"<link>";
print"$url";
print"</link>";
print"<description>";
print"$body";
print"</description>";
print"<guid isPermaLink=\"false\">$id</guid>";  
print"<pubDate>$formatted_date_time</pubDate>";
print"</item>";
}
}
mysql_close($link);
?>
</channel>
</rss>