Bonjours
SVP ,,qui peut m'aider à resoudre mon probleme.....
je suis entrain de réaliser mon premier projet....
j'ai une table "histo"...et j'ai des donné enrigistrée dans un table "pc"
la table "pc" contient tout les information concernant une laptop..son n_serie, son nom,,le nom et le prenom de l'utilisateur....
et le table "histo" contient l'historique des differents mouvements concernant le laptop..
j'ai fait une button "reaffecter" pour changer queleque information de chaque laptop...
la table pc contient pour le moment seulement la date de modification et l'ancien etat de laptop...etc
je veut remplir un champs "responsable de modification" dans lequel je doit enrigistrer le nom de la personne qui fait la modification....
et merci beaucoup pour votre comprhension...
voici la parite de script"historique.php"
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 <tr> <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 $sql1="select * from pc WHERE id='$id' "; $rs1=mysql_query("$sql1") or die("Erreur SQL : $sql1<br/>".mysql_error()); $sql="select * from histo WHERE id_pc='$id' "; $rs=mysql_query("$sql"); //if(isset($_COOKIE['nom'])) //{ //$id_user = $_COOKIE['nom']; // Redirection de l'utilisateur //header("Location: user_home.php?id_nom=$id_user"); //} $row=mysql_fetch_array($rs1); if($row){ 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>"; } } ?>
Partager