Ouvrages
if($_GET['page']!="") $page=$_GET['page']; else $page=1; $lpp = 10; //Nombre de ligne par page $nbpage=10; $reqP1=mysqli_query($link,"select count(*) as 'nb' from ouvrage_klop where pub='o' order by ordre"); $resNb=mysqli_fetch_array($reqP1); $nb=$resNb["nb"]; if ( $nb > $lpp ) $lastpage = ceil($nb/$lpp); else $lastpage = 1; $limit = ($page - 1) * $lpp; $reqListeOuvrage=mysqli_query($link,"select titre,titre_propre,photo,accroche from ouvrage_klop where pub='o' order by ordre LIMIT $limit, $lpp"); while($listeOuvrage=mysqli_fetch_array($reqListeOuvrage)) { if($listeOuvrage["photo"]=='') $lienPhoto='images/global/image-actu.jpg'; else $lienPhoto=$listeOuvrage["photo"]; ?>
" class="image">">
}
// Gestion des pages
if($lastpage!=1)
pagin($lastpage,$page,$lpp,$nbpage,"",$url);
?>
"> echo stripslashes($listeOuvrage["titre"]); ?>
echo stripslashes($listeOuvrage["accroche"]); ?>