I'M ABOUT TO GO CRAZY! Everything I read says I should be able to export my dynamically generated HTML table to Excel by simply putting <b>header("Content-Type: application/vnd.ms-excel");</b> as the first output of the script followed by the HTML table. I CANNOT GET IT TO WORK! All it does is whir for a while and then launches Excel with a "Timeout error" within the cells (rather than my expected data).
However, I CAN make it work if I hard code the HTML table (or copy and paste my dynamic table) after the Content-Type statement -- that works great. Why won't it work with my dynamically generated table on the fly?
(Windows 2000 Pro, IE 5.5 w/ SP 2, PHP 4)