je souhaite afficher mes resultats avec le code ci dessous mais mon tableau fait du n'importe quoi, dimmensionné par chaque cellule on dirait plusieurs tableau. avez vous un tuto la dessus ou une solution?

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
echo '<table>'."\n";
 
        // première ligne on affiche les titres prénom et surnom dans 2 colonnes
        echo '<tr>';
        echo '<td><b><u><center>entreprise</center></u></b></td>';
      	echo '<td><b><u><center>annonce</center></u></b></td>';
		echo '<td><b><u><center>site</center></u></b></td>';
        echo '</tr>'."\n";
  while($data = mysql_fetch_assoc($req)) 
    { 
	echo '<table>'."\n";
 
      echo '<td><b>'.$data['nom_entreprise'].'</b></td>';
	  echo '<td><b>'.$data['adresse_entreprise'].'</b></td>';
	  echo '<td><b>'.$data['ville_entreprise'].'</b></td>'; 
	echo '</tr>'."\n";
	echo '</table>'."\n";
	}