Calendar
$db = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
mysql_select_db(DB_NAME,$db);
$sql = mysql_query("SELECT * from jlc_show order by date_show desc");
while($ligne=mysql_fetch_row($sql)){
echo "
\n";
if ($ligne[4] >= date("Y-m-d")) {
printf("\n",$ligne[2]);
} else {
printf("\n",$ligne[2]);
}
echo "
\n";
printf("
%s
%s
%s
",$ligne[4],$ligne[3],$ligne[7]);
printf("",$ligne[5]);
printf("
",$ligne[6]);
}
mysql_close($db);
?>