Archives des Évènements

<?
$now=time();
setlocale(LC_TIME, “fr_BE”);
if(isset($_GET[“q”])){
$s=mktime(0,0,1,1,1,$_GET[“q”]);
$e=mktime(0,0,1,12,31,$_GET[“q”]);
}else{
$s=mktime(0,0,1,1,1,$year);
$e=mktime(0,0,1,12,31,$year);
}
$getevents=mysql_query(“SELECT * FROM events WHERE event_debut < $now AND event_debut BETWEEN ‘$s’ AND ‘$e’ ORDER BY event_debut DESC”);

while($g=mysql_fetch_assoc($getevents)){
$d=strftime(“%e.%m.%Y à %Hh%M”,$g[“event_debut”]);

//if($g[“event_fin”]>0){$d=strftime(“%e.%m.%Y”,$g[“event_debut”]).” au “.strftime(“%e.%m.%Y”,$g[“event_fin”]); }
if($_GET[“mode”]==”admin”){$del=”“;}else{$del=””;}
echo ”

 

“;}

?>

Leave a Reply