Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/03/2012, 23:44
solilopi
 
Fecha de Ingreso: enero-2012
Mensajes: 52
Antigüedad: 12 años, 1 mes
Puntos: 1
Pregunta Respuesta: Insertar tabla html en echo php

Me da error al convertir el código, ¿Será porque tengo una función dentrodel echo que quiero convertir en tabla?

Código PHP:
while ($row mysql_fetch_array($resultado))
    {
        
$tabla .= "<tr><td>{$row["marca"]} {$row["modelo"]} {$row["matricula"]} {$row["equipamiento"]} {$row["precio"]} {mostrarGaleria($row["matricula"])}</td></tr>";    

        echo 
"<hr>"."<br/>".$row["marca"]." ".$row["modelo"].
        
" Matr&iacute;cula ".$row["matricula"]." ".$row["equipamiento"]." Precio: ".$row["pvp"]."<br/>";        
        
mostrarGaleria($row["matricula"]);
    }
    
$tabla .= "</table>";
    echo 
$tabla
}