Formations
-
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 actualite_klop where pub='o' and id_catActu=10 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;
$reqFormation=mysqli_query($link,"select titre,titre_propre,accroche from actualite_klop where pub='o' and id_catActu=10 order by ordre LIMIT $limit, $lpp");
while($formation=mysqli_fetch_array($reqFormation))
{ ?>
-
"> echo $formation["titre"]; ?>
} ?>