Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ***********************************************************
- // ********** FORMAT DE DATES *****************************
- // ***********************************************************
- function datetoFR($date){
- if(!empty($date)){
- list($year, $month, $day) = explode("-", $date);
- return $lastmodified = "$day/$month/$year";
- }
- else{
- return $date;
- }
- }
- $sql="select distinct c.* from spip_articles a,cinetic_movie c,lien_film_article l where l.id_article =a.id_article and l.id_film = c.idmovie and a.statut like 'publie' order by c.sortie desc Limit 0,2";
- $res=mysql_query($sql);
- while($row=mysql_fetch_assoc($res)){
- include("squelettes/include/dernieres_critiques.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement