Boa tarde,
Estou tentando exportar a tabela abaixo para Excel usando PHP, porém não estou conseguindo. Alguém teria alguma dica?
<table class="table table-bordered table-striped" > <thead> <tr> <th style="text-align:center" colspan="4"><?php echo $stm->descricao; ?></th> </tr> </thead> <?php $service = new MetaOrcamentoService(); $line = $service->getRelatorio($lista->idprojeto,$stm->iditem); ?> <tbody> <?php foreach ($line as &$listagem) { ?> <tr> <td></td> <td style="font-weight:bold; text-align:center">Real</td> <td style="font-weight:bold; text-align:center">Dolares</td> <td style="font-weight:bold; text-align:center">Euros</td> </tr> <tr> <td style="font-weight:bold"><?php echo $listagem->descricaoLinha; ?></td> <td style="text-align:right">R$ <?php echo $listagem->vlr_real; ?></td> <td style="text-align:right">$ <?php echo $listagem->vlr_dolar; ?></td> <td style="text-align:right">€ <?php echo $listagem->vlr_euro; ?></td> </tr> <tr> <?php } ?> <tr> <td colspan="4"> </td> </tr> </tbody> </table>