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ícula ".$row["matricula"]." ".$row["equipamiento"]." Precio: ".$row["pvp"]."<br/>";        
        mostrarGaleria($row["matricula"]);
    }
    $tabla .= "</table>";
    echo $tabla; 
    
  }