Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/07/2009, 09:02
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 8 meses
Puntos: 139
Respuesta: Pregunta con matriz

Ya lo resolvi

Gracias


Código PHP:
<?php



$Nom 
" |Dell | 256 | 128 | 
        |Ibm | 128 | 256 | 
        |Compaq | 512 | 1000 | "
;


$Com explode("|",$Nom );

$b 1;

echo 
"<table border=1><tbody>
<tr>
<th>Marca</th>
<th>Memoria ram</th>
<th>Targeta Video</th>
</tr>
"
;

    for(
$a ;$a count($Com);$a++){


    
$l =  $Com[$a];

    if (
$b )
    {
    
    echo 
"
    
    <td>$l</td>"
;
    

    }
    else 
    {
    echo 
"<tr></tr>";
    
$b 
    }
    
$b++;

}
    echo 
"
    <tbody>
    </table>"
;




    
?>