bonjours,
je travaille sur un script php dont l'objectif est la gestion des laptops dans une usine.
je veux enregistrer l'historique des utilisateurs connecté ,lorsque ils utilisent les laptops ;Ainsi je veut mettre ça dans une table ayant comme colonne :date ,responsable de motif, information bénéficiaire(concernant laptop).
donc comment avoir ça de façons dynamique.
voici mon la partie concernant:et merci d'avance
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 <td valign="top"><hr> <table width="966" BORDER="1" bordercolor="#BDE7F7" CELLPADDING="0" CELLSPACING="0"> <tr> <th width="97"><p align="left" class=text2>Date</th><th width="137" ><p align="left" class=text2>Mouvements</th> <th width="724" ><p align="left" class=text2>Informatin <strong>bénéficiaire</strong></th> <th width="724" ><p align="left" class=text2>Responsable de la modif</th> </tr> <?php $sql="select * from histo WHERE id_pc='$id' "; $rs=mysql_query("$sql"); while($tab=mysql_fetch_array($rs)) { echo "<tr>"; echo "<td valign=top><p class=text2>$tab[2]</td>"; echo "<td valign=top><p class=text2>$tab[3]</td>"; echo "<td><p class=text2><img src=img/arrow1.gif border=0> Nom :$tab[4]<br> <img src=img/arrow1.gif border=0> Prénom :$tab[5]<br> <img src=img/arrow1.gif border=0> matricule :$tab[6] <br> <img src=img/arrow1.gif border=0> Service :$tab[7]<br> </td>"; //echo "<td valign=top><p class=text2>$x</td>"; echo "</tr>"; } ?> </table> </td> </tr> </table> </body> </html>
Partager