Daily Archives: April 10, 2007
php code : generate excel using mysql and php
just put the header in your php code <?php header(“Content-Type: application/vnd.ms-excel”); header(“Expires: 0″); header(“Cache-Control: must-revalidate, post-check=0, pre-check=0″); header(“content-disposition: attachment;filename=form_k01.xls”); // Make a MySQL Connection mysql_connect(“172.27.1.245″, “root”, “”) or die(mysql_error()); mysql_select_db(“lp2tk”) or die(mysql_error()); // Get all the data from the “example” … Continue reading
Share on Facebook
Posted in php
3 Comments
