先准备一个excle:2009.xls 打开它另存为csv格式,一定是打开另存为!<?php header("Content-Type:text/html;charset=gbk"); $conn=mysql_connect('localhost','root','123456')or die("数据库连接失败"); mysql_select_db('test',$conn); mysql_query("SET NAMES 'GB2312'"); $ Read More
posted @ 2012-11-28 21:10
tinyphp
Views(524)
Comments(0)
Diggs(0)
<?phpheader("Content-type:application/vnd.ms-excel");header("Content-Disposition:attachment;filename=table.xls");?> <table border="1"> <tr> <td>t00</td><td>t01</td><td>t02</td> </tr> <tr> <td>t10< Read More
posted @ 2012-11-28 18:42
tinyphp
Views(999)
Comments(0)
Diggs(0)