Bonjour

Avec ce code, j'arrive à remplir partiellement le tableau :
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
<?php
	$clients = array(
		array('Leparc','Paris','35'),
		array('Duroc','Vincennes','22'),
		array('Denoel','Saint-Cloud','47')
	);
	echo '<table border=1>';
	echo '<thead><tr><th>Client</th>
				<th>Nom</th>
				<th>Ville</th>
				<th>Age</th>
			</tr>
		</thead>';
	echo '<tfoot><tr><th>Client</th>
				<th>Nom</th>
				<th>Ville</th>
				<th>Age</th>
			</tr>
		</tfoot>';
	for($i=0;$i<count($clients);$i++){
		echo '<tr><td>'.$i.'<td>';
		for($j=0;$j<count($clients[$i]);$j++){
			echo '<td>'.$clients[$i][$j].'</td>';
		}
		echo'</tr>';
	}
	echo '</table>';
?>
Mais la deuxième colonne [1] (NOM) reste vide alors que les autres se remplissent bien mais sont décalée sur la droite.

Quelqu'un sait-il pourquoi ?

Merci