$ite = 0;
while ( ($rowAgenda = mysql_fetch_array( $resAgenda )) && $ite < 3 ) {
//on affiche que si la date de fin n'est pas dépassée
if ( time() < strtotime( $rowAgenda[ 'dateFin' ] ) ) {
$date = $rowAgenda[ 'dateDebut' ];
$dates = explode( "-", $date );
$month = $dates[ 1 ];
$day = $dates[ 2 ];
if ( $month == 1 )
$month = "JAN";
else if ( $month == 2 )
$month = "FEB";
else if ( $month == 3 )
$month = "MAR";
else if ( $month == 4 )
$month = "APR";
else if ( $month == 5 )
$month = "MAI";
else if ( $month == 6 )
$month = "JUN";
else if ( $month == 7 )
$month = "JUL";
else if ( $month == 8 )
$month = "AUG";
else if ( $month == 9 )
$month = "SEP";
else if ( $month == 10 )
$month = "OKT";
else if ( $month == 11 )
$month = "NOV";
else if ( $month == 12 )
$month = "DEZ";
if ( $ite != 0 )
echo "
";
?>
$ite++;
}
}
?>
SIEHE ALLE TERMINE