Mettre un tableau dynamique en PHP dans une v

Résolu
bfiguig -  
babou054 Messages postés 162 Date d'inscription   Statut Membre -
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
Configuration: Windows XP Internet Explorer 6.0

2 réponses

  1. babou054 Messages postés 162 Date d'inscription   Statut Membre 11
     
    $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
    1. bfiguig
       
      merci beaucoup
      0
  2. babou054 Messages postés 162 Date d'inscription   Statut Membre 11
     
    de rien ;)
    0