function d'1 tableau a deux indices

Statut
N'est pas ouverte pour d'autres réponses.

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é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> </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);
bonjour :)

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 :D
 
1er
OP
sebge2

sebge2

Elite
prob résolu .. manquais un S mdr :oops:
 
1er
OP
sebge2

sebge2

Elite
c tjs les p'tits trucs qu'on voit jamais :roll:
 
Statut
N'est pas ouverte pour d'autres réponses.
Haut