sebge2
Elite
Code:
function tableau($TABLE){
//if($TABLE!=""){
$texte="<p><font color='#FF0000'><u>".$TABLE[0][0]."</u></font></p>";
$texte.="
<table width='100%' border=0 cellspacing=0 cellpadding=0>
<tr>
<td width='25%'> <div align='center'><strong>Profondeur</strong></div></td>
<td width='25%'> <div align='center'><strong>Date</strong></div></td>
<td width='25%'> <div align='center'><strong>Lieu</strong></div></td>
<td width='25%'> <div align='center'><strong>Dur&eacute;e</strong></div></td>
</tr>";
for($i=1;$i<count($TABLE);$i++){
$texte.="
<tr>
<td width='25%'> <div align='center'><strong>".$TABLE[$i][0]."</strong></div></td>
<td width='25%'> <div align='center'><strong>".$TABLE[$i][1]."</strong></div></td>
<td width='25%'> <div align='center'><strong>".$TABLE[$i][2]."</strong></div></td>
<td width='25%'> <div align='center'><strong>".$TABLE[$i][3]."</strong></div></td>
</tr>";
}
$texte.="</table><p>&nbsp;</p>";
return $texte;
//}
}
$POIDSCONTANT[]=array("Poids constant","","","");
$POIDSCONTANT[]=array("- 65 m","12 novembre 1990","Ile d'Elbe (Italie)","2' 18''");
$POIDSCONTANT[]=array("- 67 m","03 octobre 1991","Ile d'Elbe (Italie)","2' 17''");
echo tableau($POIDSCONSTANT);
le probleme est tout simple ! et compliquer a la fois ! lol la fonction ne recoit pas le tableau si je f un count du tableau c'est égal a 0 ... qqun aurait il une idée sachant que c'est un tableau a double indice
merci