Bonjour tout le monde
Dans le cadre d'un projet personnel, j'ai afficher des enregistrements dans un tableau mais il y en a une centaine. Je voudrai afficher 10 enregistrements par page dans le tableau mais je ne sais pas comment faire .
Voici le code de mon tableau
Si quelqu'un pourrait m'aider ce serai super cool
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 require_once 'Connection.php'; $cnx = connect(); $sql = 'SELECT nom_jury, prenom_jury, email_jury, numero_jury, id_jury FROM Jury ORDER BY numero_jury ASC'; $req = mssql_query($sql, $cnx); $resultat = mssql_query($sql); echo '<table border="1">'; echo "<tr> <th>Nom</th> <th>Prénom</th> <th>Email</th> <th>Numero de jury</th><th>Supprimer</th></tr>"; while ($ligne = mssql_fetch_row($resultat) ){ $supprForm = '<form method="post" action="Supprimerjury.php">' .'<input type="hidden" name="id" value="'.$ligne[4].'" />' .'<input type="image"src="images/valid.png"alt="Supprimer"/>' .'</form>'; echo '<tr><td>'.$ligne[0].'</td><td>'.$ligne[1].'</td><td>'.$ligne[2].'</td><td>'.$ligne[3].'</td><td>'.$supprForm.'</td></tr>'; } echo "</table>";
Merci






Répondre avec citation



Partager