
Index du forum »» Le coin des codeurs »» [Résolu] - image
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;
}
function ephemblock() {
$result = mysql_query("select content from ephem order by RAND DESC LIMIT 0,1");
list($content) = mysql_fetch_array($result);
$boxstuff = "<br /><br />";
$boxstuff = ($content);
global $block_title;
if ($block_title=="")
$title=("Fiche");
else
$title=$block_title;
themesidebox($title, $boxstuff);
}
#autodoc ephemblock() : Bloc ephemerid <BR>=> syntaxe : function#ephemblock
function ephemblock() {
$result = mysql_query("select content from ephem order by RAND() DESC LIMIT 1");
list($content) = mysql_fetch_array($result);
$boxstuff = "<br /><br />";
$boxstuff = ($content);
global $block_title;
if ($block_title=="")
$title=("Fiche");
else
$title=$block_title;
themesidebox($title, $boxstuff);
}