1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
<?php include 'connexion.php';
if(isset($_GET["choix"]))
{
$choix=$_GET["choix"];
}
else
{
$choix="accueil";
}
$sql="SELECT * FROM `actualite` ";
$resultat=mysql_query($sql) or die("erreur en sql". mysql_error());
$total=mysql_num_rows($resultat);
$page=$total/3;
if(isset($_GET["debut"]))
{
$d=$_GET["debut"];
}
else
{
$d=0;
}
$sql= $sql." LIMIT ".$d.",3";
$resultat=mysql_query($sql);
while ($l=mysql_fetch_array($resultat)){ ?>
<p class="Style5"><?php
echo substr($l['actu'], 0, 434); ?><span class="Style12"><a href="index.php?choix=actualite-suite&ref=<?php print($l['id']); ?>">lire la suite</a></span>
<?php
}
}
?> |
Partager