$lang = $_REQUEST[lang]; if ($lang==2) $format= "%W the %D of %M %Y at %h:%i %p"; else $format = "%Y-%m-%d %H:%i"; $year = 'SELECT date, DATE_FORMAT(date, \''.$format.'\'), description, ville, pays FROM date_spectacle WHERE date >= DATE(NOW()) ORDER BY date DESC'; $req = mysql_query($year)or die (mysql_error()); $row = mysql_fetch_row($req); while(isset($row[0])) { echo "

$text2

"; while ($row = mysql_fetch_row($req)) { echo "
$text3 "; if ($lang == 2) echo "$row[1]"; else echo formatdate(strtotime($row[1])).""; echo " $text5 $row[3] $text6 $row[4]"; echo '
DESCRIPTION :
'; echo "$row[2]
"; echo "
"; } }