// header("Cache-Control: public");
require("./db_inc.php3");
if(!mysql_connect($db_server,$db_user,$db_pw)){
print " erreur acces Mysql
";
exit;
}
if(!mysql_select_db($db)){
print "erreur choix base
";
exit;
}
$req = "SELECT * FROM blog ORDER BY date DESC LIMIT 0,20";
$result=mysql_query($req);
// When debugging, make the following line a comment
// header("Content-Type: text/xml");
$output .= "\n";
$output .= "\n";
$output .= "\n";
$output .= " \n";
$output .= " ABGV Japan\n";
$output .= " http://www.gentianeetantoine.com\n";
$output .= " ABGV in Japan\n";
$output .= " antoine@gentianeetantoine.com\n";
$output .= " en-us\n";
//$output .= " <a href=\"http://www.voidstar.com/gnews2rss.php\">GNews2Rss</a>\n";
while ($row = mysql_fetch_row($result)) {
$output .= " - \n";
$output .= " ". $row[1] ."\n";
$output .= " http://www.gentianeetantoine.com/index_archives.php?month=". urlencode($row[0]) ."\n";
// $output .= " ". $desc ."\n";
$output .= "
\n";
}
$output .= " \n";
$output .= "\n";
print $output;
?>