Bonjour
Une requête simple vers 2 tables, et affichage en triple... comprends pas !!

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
 
$sql = ' SELECT  * FROM  fiche ,info WHERE fiche.type1="client"  OR fiche.type1="prospect" ';	
 
$result = $bdd->query($sql);
 
while ($row = $result -> fetch()) 
{ 
 
$numclt=$row['numclt'];	 	 	 	 	 
echo '<tr><td>';
echo  $nom=$row['nom'];			
echo '</td><td>';
echo  $prenom=$row['prenom'];		
echo '</td><td>';
echo  $telport=$row['telport'];	
echo '</td><td>';
echo  $telfixe=$row['telfixe'];	
 
//=====
echo '<tr><td>';
echo  $info    =$row['info'];		
echo '</td><td>';
echo  $datea   =$row['datea'];		
 
echo '</td><td>&nbsp;</td><td>'.$numclt.'&nbsp;</td><td>&nbsp;'.$row['numclt'].'</td></tr>';
 
}
Il y a 3 entrées dans la table "fiche" dont une où "type1" est 'autre' ....

j'ai essayé aussi avec :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
$result = $bdd->query($sql);
$resultat=$result->fetchAll(PDO::FETCH_ASSOC);
foreach ($resultat as $row  ) { ect....
voila... merci de votre aide