I was using a sample code of Tim Frank,
<?php
header("Content-Type: application/vnd.ms-excel; name='excel'");
header("Content-Disposition: attachment; filename=filename.xls");
?>
<table>
<tr>
<td>Column with Text</td>
<td>Column with Numbers</td>
<td>Column with Numbers/Text with leading zeros</td>
</tr>
<tr>
<td>I am text</td>
<td>1,500.00</td>
<td>="0012"</td>
</tr>
</table>
but I need to export to excel using a dynamic table generated by php code.
I have a warning message that is drive me crazy:
Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs...
Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs...
I hope that You can help with this problem.
Regards, Efrain Lopez.