<?php require_once 'user/config.php'; $page_name=$meta_description; session_start(); $sql1="SELECT * FROM blog_config"; $bloginfo_rss_req = mysql_query($sql1) or die('Erreur SQL !<br />'.$sql1.'<br />'.mysql_error()); $bloginfo_rss = mysql_fetch_assoc($bloginfo_rss_req); echo "<?xml version='1.0' encoding='ISO-8859-1'?> <rss version='2.0'> <channel> <title>".$site_name."</title> <link>http://www.monsite.com</link> <description>{$bloginfo_rss["description"]}</description>"; $sql="SELECT * FROM article ORDER BY id_article DESC LIMIT 20"; $req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error()); while($data=mysql_fetch_assoc($req)) { $article_desc = strip_tags($data['article']); // //echo"{$data["titre"]}<///a><br />"; //echo"<b>".$article_date_display." :</b> {$data["date"]}<br />"; echo" <item> <title>{$data["titre"]}</title> <link>http://www.blogartisanal.tk/?id={$data["id_article"]}</link> <guid isPermaLink='false'>6</guid> <description>{$article_desc}</description> <pubDate>0000-00-00 00:00:00 GMT</pubDate> </item>"; } echo" </channel> </rss>"; ?>