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