website logo
Auteur
avatar
oim

Forum » » Le coin des codeurs » » [Résolu] - image


Posté : 28 sept. 2004 à 17:31 icone du post

En fait j'ai trouvé une façon plus simple, utiliser l'ephemeride par contre il faudrait changer la fonction pour afficher par jour par aléatoire :


function ephemblock() {
   global $gmt;
   $eday=date("d",time()+($gmt*3600));
   $emonth =date("m",time()+($gmt*3600));
   $result = mysql_query("select yid, content from ephem where did='$eday' AND mid='$emonth' order by yid ASC");
   while (list($yid, $content) = mysql_fetch_array($result)) {
      if ($cnt==1)
         $boxstuff .= "<br /><br />";
         $boxstuff .= aff_langue($content);
         $cnt = 1;
   }


Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=12098&forum=5