Bonjour a tous,

j'ai les résultats de 2 requetes mysql

Je recherche a insérer un résultat de une requête dans l'autre pour arriver a ce que a chaque ligne de la première requête,soit afficher le résultat de l'autre requête qui correspond a la première requête.

sauf que je n,y arrive pas encore, soit ca plante ou que les résultats de la deuxieme s'affiche apres la premiere

Sauriez-vous me dirriger sur la bonne facon de s'y prendre

merci

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
<table  width="95%" border="0" align="center"> 
      <caption>Vos d&eacute;parts </caption>
 
<tr align="center">
	 <th scope="col 1">Réf. #</th>
         <th scope="col 1">Heure</th>
         <th scope="col 1">Lieu de d&eacute;part</th>
         <th scope="col 1">Destination</th>
		<th scope="col 1">Prix</th>
      </tr>
<?php
 
 
foreach($tableau_res as $info){
 
        echo'<tr><td align="center"><strong>'.htmlentities($info['id']).'</strong></td>';
	echo'<td align="center"><strong>'.htmlentities($info['date']).'</strong><br />'.htmlentities($info['time']).'</td>';
	echo'<td align="center"><strong>'.htmlspecialchars($info['ville']).'</strong>**(';if (!empty($info['paysD']) ) { echo htmlspecialchars($info['paysD']);}else{ echo htmlspecialchars($info['provinceD']);} echo')<br />'.htmlspecialchars($info['Pdepart']).'</td>';
        echo'<td align="center" ><strong>'.htmlspecialchars($info['villeD']).'</strong>**(';if (!empty($info['paysD']) ) { echo htmlspecialchars($info['paysD']);}else{ echo htmlspecialchars($info['provinceD']);} echo')<br />'.htmlspecialchars($info['pointD']).'</td>';	
	echo '<td align="center"><strong>'.htmlspecialchars($info['prix']).'&nbsp;$&nbsp;Cad</strong></td>';
	  '</tr>';	
	 }
 
    foreach($tableau_result as $infos){
 
	 echo' <tr><td rowspan="4" width="120"><img src="/wez/img/img_stock/'.htmlentities($infos['photo']).'"alt = "photo du membre" width="130" height="120"</td>';
	 echo' <td class="orange">Votre conducteur &nbsp; <strong>'.htmlentities($infos['login']).'</strong></td>';
	 echo' <td>';if (!empty ($infos['sexe']) && ($infos['sexe']) == 'homme'){ echo 'Un covoitureur de  ';}else{ echo 'Une covoitureuse de ';}'</td>';
	 echo' <td>'.htmlspecialchars($infos['ville']).'</td>';
	 echo' <td></td>
	 </tr>';
	 echo' <tr><td><strong>Surveillez un/une :</strong></td>';
	 echo' <td>'.htmlspecialchars($infos['modele']).'</td>';
	 echo' <td><strong> immatriculé :&nbsp;'.htmlspecialchars($infos['plaque']).'</strong></td>';
	 echo' <td><strong>'.htmlspecialchars($infos['couleur']).'</strong></td>
	 </tr>';
	 echo' <tr><td><strong>Air climatisé :</strong>&nbsp;'.htmlspecialchars($infos['climatise']).'</td>';
	 echo' <td><strong>Auto fumeur :</strong>&nbsp;'.htmlspecialchars($infos['fumeurs']).'</td>';
	 echo' <td><strong>bagage :&nbsp;</strong>'.htmlspecialchars($infos['bagage']).' </td>';
	 echo' <td></td>
	 </tr>';
	 echo' <tr><td><strong>Tel :&nbsp;&nbsp;'.htmlentities($infos['telephone']).'</strong></td>';
	 echo' <td><strong>Cellulaire :&nbsp;'.htmlentities($infos['cellulaire']).'</strong></td>';
	 echo' <td><strong>Email :&nbsp;'.htmlentities($infos['email']).'</strong></td>';
	 echo' <td></td>
	 </tr> ';
	 echo' <tr><td rowspan="4"><strong>&nbsp;</strong></td>';
	 echo' <td><strong>&nbsp;</strong></td>';
	 echo' <td colspan="3" rowspan="4" >'.htmlentities($info['infosTexte']).'</td>
	 </tr> ';
	 echo' <tr><td>&nbsp;</td>
	 </tr>';
	 echo' <tr><td>&nbsp;</td>
	 </tr>';
	 echo' <tr><td>&nbsp;</td>
	 </tr>';
	} 
 } else {
			echo '<h2> Vous n\'avez aucun départ a venir !</h2>';
  }
?>
	</table>


----------