PROMOPROMOPROMOPROMOPROMOPROMOPROMOPROMO

    $date LIMIT 2"; $result = mysql_query($query) or die(mysql_error()); if (mysql_num_rows($result) == 0) { echo "

    Pas de promos actuellement.

    "; } while($row = mysql_fetch_assoc($result)) { $row{'expiration'} = preg_replace( "/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{6})/", "$3/$2/$1", $row{'expiration'} ); $row{'date'} = preg_replace( "/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{6})/", "$3/$2/$1", $row{'date'} ); echo "
  • ".$row{'contenu'}."
    (offre valable du ".$row{'date'}." au ".$row{'expiration'}.")
  • \n"; } ?>