Salut à tous,

J'ai un problème avec mon code, il ne me l'affiche pas comme je le lui demande dans un tableau ... mais en ligne pour le premier enregistrement et après sur le 2ème enregistrement ça part totalement bizarrement ...
Où ai-je fais une erreur dans mon code.

Le voici :
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
<table width="734" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="626"><p><strong>Championnats chaux-de-fonniers de courses de sprint et
        d'endurance</strong></p>
      <p><strong>Liste des inscrits</strong></p>      <p>Nous vous demandons d'&ecirc;tre pr&eacute;sent &agrave; l'heure indiqu&eacute;e<br>
        Vous devez payer 1.- par cat&eacute;gorie concourue (Sauf finale) (80m
    et 1000m : 2.-)<br>
    Just4Fun : 10.- (&eacute;l&egrave;ves 5.-) ; Prix famille max : 15.-</p></td>
    <td width="108"><div align="right"><img src="mini_logo.jpg" width="99" height="95"></div></td>
  </tr>
</table>
<br>
<table width="736" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td width="270"><strong>Nom</strong></td>
    <td width="74"><div align="center"><strong>Ann&eacute;e</strong></div></td>
    <td width="100"><div align="center"><strong>Cat&eacute;gorie</strong></div></td>
    <td width="209"><div align="center"><strong>Disciplines</strong></div></td>
    <td width="83"><p align="center"><strong>Heure (prov)</strong></p>
    </td>
  </tr>
</table>
<table width="736" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <?php
include  "db.php";
$con = new DBConnect();
 
$sql = 'SELECT `Nom`, `Prenom`, `Naissance`, `Heure`, `80m`, `1000m`, `fun`, `Cat`  FROM `inscription` ORDER BY `Nom` ASC, `Prenom` ASC';
$res = $con->sendSql($sql);
echo '<table border="0" width="891">';
$ldate = "";
while ($row = mysql_fetch_array($res, MYSQL_ASSOC)) {
?><td width="270"><?=stripslashes($row["Nom"])?> <?=stripslashes($row["Prenom"])?></td>
    <td width="74"><div align="center">
      <?=stripslashes($row["Naissance"])?>
    </div>
    </td>
    <td width="100"><div align="center">
      <?=stripslashes($row["Cat"])?>
    </div>
    </td>
    <td width="209"><div align="center">
      <?=stripslashes($row["80m"])?> <?=stripslashes($row["1000m"])?> <?=stripslashes($row["fun"])?>
    </div>
    </td>
    <td width="83"><p align="center">
      <?=stripslashes($row["Heure"])?>
    </p>
    </td>
</table> <?}
?>
      <?
@$con->Uconn();
?>
<p>&nbsp;</p>
Merci d'avance !!!!!!!!!