Mettre un tableau dynamique en PHP dans une v

Résolu/Fermé
bfiguig - 14 mai 2009 à 14:56
babou054 Messages postés 162 Date d'inscription lundi 11 mai 2009 Statut Membre Dernière intervention 1 septembre 2009 - 14 mai 2009 à 15:08
Bonjour,
voila je veux mettre un tableau dans une variable, comment faire
je vous montre mon code :

<?php
$test = '<table style="overflow:hidden" bgcolor="#E8E8E8" cellspacing="0" cellpadding="0" width="100%" border="1" align="center">';
$test = $test & '<TR>';
$test = $test & '<TD width="40%" class="entete">SCHEMAS</TD>';
$test = $test & '<TD width="40%" class="entete">APPLICATION</TD>';
$test = $test & '<TD width="20%" class="entete">INSTANCES</TD>';
$test = $test & '</TR>';
$test = $test & '</table>';


echo $test;

?>

ça c'est un exemple, mais quand je fais echo $test le tableau ne s'affiche pas
pourquoi ??
merci d'avance
Cordialement

2 réponses

babou054 Messages postés 162 Date d'inscription lundi 11 mai 2009 Statut Membre Dernière intervention 1 septembre 2009 11
14 mai 2009 à 15:00
$test = '<table style="overflow:hidden" bgcolor="#E8E8E8" cellspacing="0" cellpadding="0" width="100%" border="1" align="center">';
$test .= '<TR>';
$test .= '<TD width="40%" class="entete">SCHEMAS</TD>';
$test .= '<TD width="40%" class="entete">APPLICATION</TD>';
$test .= '<TD width="20%" class="entete">INSTANCES</TD>';
$test .= '</TR>';
$test .= '</table>';
0
merci beaucoup
0
babou054 Messages postés 162 Date d'inscription lundi 11 mai 2009 Statut Membre Dernière intervention 1 septembre 2009 11
14 mai 2009 à 15:08
de rien ;)
0