Bonjour j'ai un petit souci, j'ai fais un tableaux de 300lignes en cherchent les donnée dans ma base de donnée (phpmyadmin) et j'aimerais faire un scroller du tableaux es ce que quelqu'un peut m'aidée voici une parti de code
cordialement
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 $query='SELECT * FROM smartphone.affectation;'; $resultat=mysql_query($query,$con) or die (mysql_error());; $total=mysql_num_rows($resultat); //donne le nombre de ligne // si on a récupéré un résultat on l'affiche. if($total) { //debut du tableau echo'<table bgcolor="#FFFFFF">'."\n"; echo '<table border="1">'."\n"; echo "<tr>"; echo '<th>Or Affectation<th>'; echo '<th>USER ID<th>'; echo '<th>PIN Terminal<th>'; echo '<th>PIN SIM<th>'; echo '<th>Vitre<th>'; echo '<th>Support Vehicule<th>'; echo '<th>Num SIM<th>'; echo '<th>Date Debut<th>'; echo '<th>Date Fin<th>'; echo '<th>Actif<th>'; echo '<th>Statut Affecter<th>'; echo '<th>Commentaire<th>'; echo '<th>Or Affectation1<th>'; echo '<th>Statut<th>'; echo "</tr>"; while($row = mysql_fetch_assoc($resultat)) { echo '<td>'.$row["Or Affectation"].'<td>'; echo '<td>'.$row["USER ID"].'<td>'; echo '<td>'.$row["PIN Terminal"].'<td>'; echo '<td>'.$row["PIN SIM"].'<td>'; echo '<td>'.$row["Vitre"].'<td>'; echo '<td>'.$row["Support Vehicule"].'<td>'; echo '<td>'.$row["Num SIM"].'<td>'; echo '<td>'.$row["Date Debut"].'<td>'; echo '<td>'.$row["Date Fin"].'<td>'; echo '<td>'.$row["Actif"].'<td>'; echo '<td>'.$row["Statut Affecter"].'<td>'; echo '<td>'.$row["Commentaire"].'<td>'; echo '<td>'.$row["Or Affectation1"].'<td>'; echo '<td>'.$row["Statut"].'<td>'; echo '</tr>'."\n"; } echo '</table>'."\n"; } else echo 'Pas d\'enregistrements dans cette table...'; ?> </body> </html>
Partager