Comment récuperer la valeur introduite dans un tableau
Bonjours voici mon code :
Code:
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
|
if ($num_rows== 1)
{
$sql = "SELECT *
FROM `MaterielDuClients`
LEFT JOIN `Materiels` ON ( MaterielDuClients.idMateriels = Materiels.idMateriels )
WHERE `MaterielDuClients`.`idClients` = '".$idClients."' ";
$result3 = mysql_query($sql);
} else {
exit;
}
echo "<CENTER><emp>Materiels du clients</emp></CENTER>";
$i = 1;
print "<CENTER><TABLE ALIGN=center BORDER=2 CELLSPACING=0 CELLPADDING=3 WIDTH=600";
while ($row = mysql_fetch_array($result3))
{
//$color = ($ct % 3 == 0) ? "C0C0C0" : "CDCDCD";
$idMaterielDuClients = htmlentities($row['idMaterielDuClients']);
$idClients = htmlentities($row['idClients']);
$idMateriels = htmlentities($row['idMateriels']);
$Identification = htmlentities($row['Identification']);
$idMateriels = htmlentities($row['idMateriels']);
$RefMateriel = htmlentities($row['RefMateriel']);
print "<TR>\n";
printf ("<TD>idClients</TD><TD>idMaterielDuClients</TD><TD>idMateriels</TD><TD>Identification</TD><TD>RefMateriel</TD>\n");
print "</TR>\n";
print "<TR>\n";
printf ("<TD WIDTH=180 BGCOLOR=$color>%s</TD>\n",$idClients);
printf ("<TD WIDTH=180 BGCOLOR=$color>%s</TD>\n",$idMaterielDuClients);
printf ("<TD WIDTH=180 BGCOLOR=$color>%s</TD>\n",$idMateriels);
printf ("<TD WIDTH=180 BGCOLOR=$color>%s</TD>\n",$Identification);
printf ("<TD WIDTH=180 BGCOLOR=$color>%s</TD>\n",$RefMateriel);
print "</TR>\n";
$i++;
}
print "</CENTER></TABLE>";
echo "</br>"; |
Du coup j'aimerai récuperer toutes les valeurs de mes $idMaterielDuClients pour de nouveaux éffectuer une nouvelle requetes sql autant de fois qu'il ait de idMaterielDuClients.
Si quelqu'un sais m'aider, Merci d'avance pour sa réponse. :)