1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<?php
$str_articles_nf = "SELECT dateArticles_nf,idArticles_nf,Heure,titreArticles_nf,TypeMatch,Lieu,DATE_FORMAT(dateArticles_nf, '%d-%m-%Y') as datefr FROM articles_nf ORDER BY dateArticles_nf limit 1";
echo "<table width='100%' heigth='100%' border='0' cellspacing='0' cellpadding='0'>";
$result_articles_nf =mysql_query ($str_articles_nf);
while ($articles_nf =mysql_fetch_object($result_articles_nf))
{
$today=time ();
$dateMatch="$articles_nf->dateArticles_nf";
$dateM=strtotime($dateMatch);
if ($today <= $dateM){
echo "<tr align='center'>";
echo "<td class='servette'>".$articles_nf->datefr." ,".$articles_nf->Heure."<br>".$articles_nf->titreArticles_nf."<br>".$articles_nf->TypeMatch."<br>".$articles_nf->Lieu."<br><br></td></tr>";}
}
echo "</table>"; ?> |
Partager