'; $xml .= ''; $xml .= 'Tustex'; $xml .= 'http://www.tustex.com'; $xml .= 'Premier site tunisien d�informations boursi�res...'; $xml .= '� Tustex 2005'; $xml .= 'fr'; $xml .= 'BANI Ramzi'; $xml .= ''; $xml .= ' Tustex : Accueil.'; $xml .= ' http://www.tustex.com/images/actus_rss.jpg'; $xml .= ' http://www.tustex.com'; $xml .= ''; $jourdui= date("D, d M Y H:i:s +0100"); //Sat, 23 Apr 2005 00:01:00 +0100 $xml .= ''.$jourdui.''; include_once('../Connections/mysql_link.php'); $res=mysql_query("select * from com order by date desc limit 0, 10"); // extraction des 10 derni�res nouvelles while($lig=mysql_fetch_row($res)){ if ($lig[2]!="-"){$titre=$lig[2]." : ".$lig[6];} else{$titre=$lig[6];} $titre=htmlspecialchars($titre); $adresse= "http://www.tustex.com/commun.php?code_com=".$lig[0]; $description=htmlspecialchars(substr(strip_tags($lig[7]),0,200)).' ...'; $madate=$lig[1]; $madate=$time_com = mktime(substr($madate,11,2),substr($madate,14,2),substr($madate,17,2),substr($madate,5,2),substr($madate,8,2),substr($madate,0,4),-1); $datephp=date("D, d M Y H:i:s +0100", $madate); $xml .= ''; $xml .= ''.$titre.''; $xml .= ''.$adresse.''; $xml .= ''.$datephp.''; $xml .= ''.$description.''; $xml .= ''; }//fin du while $xml .= ''; echo $xml; ?>