Actualités

Nos actualités

nbafficher; if($page!=0){$debut=($page*$maxpage);} if($debut>$nb_afficher){$page=0;$debut=0;} $page_max=floor($nb_afficher/$maxpage); if(($page_max*$maxpage)==$nb_afficher){$page_max--;} $resultat = mysql_query("select * from $table where statut='1' order by id desc LIMIT $debut,$maxpage "); $nb_cellules = mysql_num_rows($resultat); $reste = $nb_cellules % $nb_colonnes; $nb_lignes = ( $nb_cellules - $reste )/ $nb_colonnes; $j = 0; $i=0; if($nb_cellules>0) { ?>