salut tous le monde
svp j'ai un probléme d'inserer les "}" fermante de boucle while et if (le bon position )puisque lors de l'exécution les deux tableau pour recuperer les donnés de la base
et voila monscript
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
$hostname_telecom = "localhost";
$database_telecom = "suged";
$username_telecom = "root";
$password_telecom = "";
$telecom = mysql_connect($hostname_telecom, $username_telecom, $password_telecom) or die(mysql_error());
 mysql_select_db($database_telecom ,$telecom) or die ('erreur de connexion base');
?>
 
 
 
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body>
<p><font color="#00FF00" size="6" face="Georgia, Times New Roman, Times, serif">Changement 
  de la Position d' un d&eacute;ranger: </font> </p>
<p>Inserer le num&eacute;ro de t&eacute;l&eacute;phone:</p>
<form name="form1" method="post" action="permu.php">
  <input type="text" name="numtel">
  <input type="submit" name="valider" value="Submit" onKeyPress="">
</form>
<?php 
if(isset ($_POST['valider'])){
$numtel=$_POST['valider'];
 $requete="select téte,amorcetéte,couleurtéte,distriubution,amorcedist,couleurdist from position where numtel='".$numtel."'";
 $resultat=mysql_query($requete) or die(mysql_error());
 while ($row=mysql_fetch_row($resultat))
  {
        $téte=$row[0];
		$amorcetéte=$row[1];
		$couleurtéte=$row[2];
 
      $distribution=$row[3];
		$amorcedist=$row[4];
		$couleurdist=$row[5];
 
 
 
?>
<table width="93%" border="0">
  <tr>
    <td width="47%" height="298"> 
      <p><font color="#0000FF" size="5" face="Arial, Helvetica, sans-serif"><em><strong>Ancien 
        Position </strong></em></font></p>
      <p><font color="#FF9900" size="3" face="Arial, Helvetica, sans-serif"><em><strong>Alimentaion</strong></em></font> 
      </p>
	   <table width="96%" border="0">
        <tr>
          <td width="55%" height="43">T&eacute;te</td>
          <td width="45%"><input name="t&eacute;te" type="text" value="<?php echo  $téte ?>"></td>
        </tr>
        <tr>
          <td height="46">Amorce</td>
          <td><?php echo  $amorcetéte ?></td>
        </tr>
        <tr>
          <td height="51">Couleur</td>
          <td><?php echo  $couleurtéte ?></td>
        </tr>
      </table>
 
 
	  </td>
    <td width="53%"> <p><font color="#0000FF" size="5" face="Arial, Helvetica, sans-serif"></font> 
      </p>
 
	  <p><font color="#FF9933" face="Arial, Helvetica, sans-serif"><em><strong>Distribution</strong></em></font></p>
 
	  <table width="90%" border="0">
	   <tr> 
          <td width="49%" height="43">Distribution</td>
          <td width="51%"><input name="distribution" type="text" value="<?php echo  $distribution?>" ></td>
        </tr>
        <tr> 
          <td height="46">Amorce</td>
          <td><?php echo  $amorcedist ?></td>
        </tr>
        <tr> 
          <td height="51">Couleur</td>
          <td><?php echo  $couleurdist ?></td>
        </tr>
      </table>
 
 
	  </td>
  </tr>
  <?php }?>
  <?php }?>
  <tr>
  <form action="file:///C|/Program%20Files/EasyPHP%202.0b1/www/ProjetFinn/permutation.php" method="post">
    <td height="250"> <p><font color="#0000FF" size="5" face="Arial, Helvetica, sans-serif"><strong>Nouveau 
        Position</strong></font></p>
      <p><strong><em><font color="#FF9966" size="3">Alimentation</font></em></strong> 
 
      </p>
 
      <table width="96%" border="0">
 
          <tr> 
            <td width="67%" height="43">T&eacute;te</td>
            <td width="33%"><input name="t&eacute;t&eacute;" type="text"></td>
          </tr>
          <tr> 
            <td height="46">Amorce</td>
            <td><input name="amorcet&eacute;te" type="text"></td>
          </tr>
          <tr> 
            <td height="51">couleur</td>
            <td><input name="couleurt&eacute;te" type="text"></td>
          </tr>
 
 
      </table> </td>
    <td> <p>&nbsp;</p>
      <p><font color="#FF9933" size="3"><strong><em>Distribution </em></strong></font> 
      </p>
      <table width="90%" border="0">
 
        <tr> 
          <td width="50%" height="43">Distribution</td>
          <td width="50%"><input name="distribution" type="text"></td>
        </tr>
        <tr> 
          <td height="46">Amorce</td>
          <td><input name="amorcedist" type="text"></td>
        </tr>
        <tr> 
          <td height="51">Couleur</td>
          <td><input type="text" name="couleurdist"></td>
        </tr>
 
 
 
      </table></td>
 
	  </form>
  </tr>
</table>
 <input name="valider" type="submit" value="VALIDER">
 
</body>
</html>
et merci pour vos aides