Bonsoir !
alors j'ai vu ton problem , en fait tas un problem ds le remplissage de ton tableau ( plsrs tab)
en fait essaye un print_r($ligne) ;
pr voir qu'est ce qu'il contient ce tab !
ca donne un truc ds le genre :
Array ( [0] =>^paggio ) Array ( [0] => suziki ) Array ( [0] => handa ) Array ( [0] => ) Array ( [0] => ferrari ) Array ( [0] => cbr ) Array ( [0] => mitsubishi )
donc essaye ca :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <?php
echo"<table border=\"2\"><tbody>";
$i=0;
//
$tab=file("moto.txt");
//lecture de $tab
for($i=0;$i<count($tab);$i++)
{
$ligne= explode (";",$tab[$i]);
//print_r($ligne);
echo"<tr><td>$ligne[0]</td><td><td></td><td></td><td></td><td></td></tr>" ;
}
echo"</tbody></table>";
?> |
et ca doit marcher sans problem
a+
LUM
Partager