bonjour
j'ai un problème au niveau de l'affichage des données dans un tableau lors du chois de combobox voila le code
NB: la requête s’exécute
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
 
<center>
    <tr>
        <td>Num&eacute;ro ETA : </td>
        <?php
 
 
echo'<select size=1 id="num_EAchat" name="num_EAchat">';
echo'<option value="-1">soisissez</option>';
   $sql="select top 10 num_EAchat from dbo.Etat_Achat";
$params = array();
$options =  array( "Scrollable" => SQLSRV_CURSOR_KEYSET );
$stmt = sqlsrv_query( $conn, $sql, $params, $options);
$num = sqlsrv_num_rows($stmt);
		 while($row = sqlsrv_fetch_array($stmt)){   
 
 
        echo '<option value="'.$row['num_EAchat'].'">'.$row['num_EAchat'].'</option>';
 
		}
 
	echo "</select>";
?>
 
 
         <input name="rechercher " type="submit" class="img" value="rechercher"  />
      </tr>
      </center>
 
	  <?php if(isset($_POST['rechercher'])) { 
 
$sql = "select ea.num_EAchat,ea.Id_Mareyeur,ea.Nom_Mareyeur,dea.mat_Navire,dea.Nom_Navire,dea.Type_Navire,dea.Num_Visa,
dnea.Code_DEAchat,dnea.PoidsAchate
from Etat_Achat ea inner join dbo.Detail_EAchat dea 
on ea.Code_EAchat=dea.Code_EAchat inner join Detail_Navire_EAchat dnea on dea.Code_DEAchat=dnea.Code_DEAchat
where ea.num_EAchat='".$num_EAchat."'";
 
$params = array();
$options =  array( "Scrollable" => SQLSRV_CURSOR_KEYSET );
$stmt = sqlsrv_query( $conn, $sql, $params, $options);
$num = sqlsrv_num_rows($stmt);  }
 
?>
 
     <p>&nbsp;</p>
 
 
				 <table border=3   bordercolordark="#CC0000" 
        bordercolorlight="#FF66CC">
<tr bgcolor="#C8BEBE">
	 <td>num_EAchat</td>
	<td>id_mareyeur</td>
	<td>nom_mareyeur</td>
	<td>mat_navire</td>
    <td>nom_navire</td>
    <td>Type_navire</td>
    <td>num_visa</td>
	<td>code_DEachat</td>
	<td>poid_total</td>
</tr>
 
<?php
	while($row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC)){   
?>
<tr>
	<td><?php echo $row ['num_EAchat']; ?></td>
	<td><?php echo $row ['Id_Mareyeur']; ?></td>
    <td><?php echo $row ['Nom_Mareyeur']; ?></td>
	<td><?php echo $row ['mat_navire']; ?></td>
    <td><?php echo $row ['Nom_Navire']; ?></td>
    <td><?php echo $row ['Type_Navire']; ?></td>
    <td><?php echo $row ['Num_Visa']; ?></td>
	<td><?php echo $row ['Code_DEAchat']; ?></td>
    <td><?php echo $row ['PoidsAchate']; ?></td>
 
</tr>
<?php
}  
?>
</table>
merci de m'aider