bonsoir,

Un probleme , je souhaite afficher les données qui se trouve dans ma BDD, sur une page web sous la forme ci-dessous:

Voici un exemple :

Mr Martin, martin@mail.ffr

1m99, 45 kg, pointure 35
aime le sport
aime le site developpez.net

--------------------------------------
Mr Durand, durand@mail.ffr

1m29, 35 kg, pointure 43
aime aller au cinema
aime le site developpez.net

------------------------------------

Mon probleme est :

je n'arrive pas à espacer les annonces avec c'est pointillé.
Quelqu'un peut m'aider MERCI

Voici mon code:


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
<?php
// D'abord, on se connecte à MySQL
$connexion=mysql_connect("xxxxx", "xxxxx", "xxxxx"); // Connexion à MySQL
mysql_select_db("xxxxx",$connexion);
 
 
// récupération des données de la table france
$requete = "select * from france";
$envoi = mysql_query($requete);
 
// début du tableau ( hors boucle )
echo "<table width=\"500\" border=\"0\" align=\"left\" cellpadding=\"1\" cellspacing=\"2\"> \n";
while($tableau = mysql_fetch_array($envoi))
{
 
echo "<tr> \n";
echo "<td width=\"42\" align=\"center\" valign=\"top\" bgcolor=\"#DCDCDC\">".$tableau['nom']."</td> \n";
echo "<td width=\"42\" align=\"center\" valign=\"top\" bgcolor=\"#DCDCDC\">".$tableau['mail']."</td> \n";
 echo "</tr> \n";
echo "<td width=\"258\" align=\"center\" valign=\"top\" bgcolor=\"#DCDCDC\">".$tableau['annonce']."</td> \n";
echo "<tr> \n";
echo "<td width=\"258\" align=\"left\" valign=\"top\">".$tableau['tel']."</td> \n";
echo '<br />---------------------------------<br />';
echo "</tr> \n";
 
}
 
// fin du tableau html ( hors boucle )
echo "</table> \n";
 
?>

MERCI