skeener Posted February 8, 2007 Share Posted February 8, 2007 I want to make a downloadable link into Excel from HTML page. i googled and found one code in ASP, <%response.ContentType="application/vnd.ms-excel"%> what is the codes in the above line that is equivalent to PHP ? or is there any other way? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/37564-convert-from-html-to-excel/ Share on other sites More sharing options...
fert Posted February 8, 2007 Share Posted February 8, 2007 header("Content-type: application/xls"); Link to comment https://forums.phpfreaks.com/topic/37564-convert-from-html-to-excel/#findComment-179635 Share on other sites More sharing options...
skeener Posted February 8, 2007 Author Share Posted February 8, 2007 i've read the tutorial on how to convert from mysql to html. i can download the page as an Excel file, but the problem is i only get error message printed in th Excel files. The error: <b>Warning</b>: Invalid argument supplied for foreach() in <b>C:phpwwwglp_phpprinterf.php</b> on line <b>62</b><br /> <br /> what am i suppose to put in the $value variable inside the tutorial? foreach($row as $value) $row is the array..but what is the $value? please help. thx in advance Link to comment https://forums.phpfreaks.com/topic/37564-convert-from-html-to-excel/#findComment-179726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.