query($sql1) or die('Erreur SQL !
'.$sql1.'
'.mysql_error());
$bloginfo_rss = $bloginfo_rss_req->fetch(PDO::FETCH_ASSOC);
echo "
".$site_name."
http://www.monsite.com
{$bloginfo_rss["description"]}";
$sql_rss="SELECT * FROM article ORDER BY id_article DESC LIMIT 20";
$req_rss = $dbh->query($sql_rss) or die('Erreur SQL !
'.$sql.'
'.mysql_error());
while($data_rss=$req_rss->fetch(PDO::FETCH_ASSOC))
{
$titre_article_rss=stripslashes($data_rss["titre"]);
$article_desc=strip_tags($data_rss['article']);
$description_rss=stripslashes($article_desc);
//$article_desc = strip_tags($data_rss['article']);
//
//echo"{$data["titre"]}//a>
";
//echo"".$article_date_display." : {$data["date"]}
";
echo"
-
{$titre_article_rss}
{$root_path}?id={$data_rss["id_article"]}
6
{$description_rss}
0000-00-00 00:00:00 GMT
";
}
echo"
";
?>