Afficher le résultat de plusieurs tableaus

Fermé
mit0910 Messages postés 21 Date d'inscription lundi 10 août 2009 Statut Membre Dernière intervention 5 mai 2010 - 10 août 2009 à 12:21
Bonjour,
je suis en train de réaliser une datagrid,
cette application me obliger d'afficher le résultat récupére de la bd sur un seul table
voici le code:

if ((foreach( $result1 as $res1))&&(foreach($result2 as $res2) )&&(foreach($result3 as $res3) )) {

$ndeman = $res1["NOM_DEMANDEUR"] ;
$pdeman = $res1["PRENOM_DEMANDEUR"];

$serv=$res2["SERVICE"];
$nbpie=$res2["NOMBRE_PIECE_CH"];
$durest=$res2["DUREE_ESTIME"];
$obs=$res2["OBSERVATION"];

$nsupp=$res3["NOM_SUPP"];
$psupp=$res3["PRENOM_SUPP"];
$spesupp=$res3["SPECIALITE"];
$tysupp=$res3["TYPE_SUPPO"];

echo " <tr>";
echo " <td>$ndeman</td>";
echo " <td>$pdeman</td>";
echo " <td>$serv</td>";
echo " <td>$nbpie</td>";
echo " <td>$durest</td>";
echo " <td>$obs</td>";
echo " <td>$nsupp</td>";
echo " <td>$psupp</td>";
echo " <td>$tysupp</td>";
echo " <td>$spesupp</td>";
echo " <td><div align=\"center\"><a href=\"#\">pdf</a></div></td>";
echo " <td><div align=\"center\"><a href=\"#\">M</a></div></td>";
echo " <td><div align=\"center\"><a href=\"#\">S</a></div></td>";
echo " <td valign=\"middle\"><form id=\"form3\" name=\"form3\" method=\"post\" action=\"\">";
echo " <label>";
echo " <div align=\"center\">";
echo " <input name=\"checkbox\" type=\"checkbox\" value=\"checkbox\" />";
echo " </div>";
echo " </label>";
echo " </form> </td>";
echo " </tr>";
}

qd j'essai avec ce code il me lance des erreurs
SVP c'est qlq me aide le plus proche possible

merci en avance.