Bonjour le forum,
Je cherche depuis ce script fonctionnant très bien, a créer une pagination :
Imaginons que je souhaite paginer ma page tous les 50 ID, j'aurais les 50 premiers sur cette page, les 50 suivants sur mapage.php?id=2 etc.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"> <head> <?php include('connexion.php') ?> <title></title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="css/default.css" media="screen" /> </head> <body> <?php while($donnees = mysqli_fetch_assoc($req)) { ?> <h3><?php echo $donnees['ID']; ?></h3> <?php } ?> </body> </html>
Existe t"il une fonction pour réaliser ceci ?
Je vous remercie par avance.







Répondre avec citation



Partager