读书人

php读取数据库内容保存到excel里解决思

发布时间: 2012-04-27 11:57:44 作者: rapoo

php读取数据库内容保存到excel里
求教下,按照字段保存到一个表格了

[解决办法]

PHP code
header("Content-type:application/vnd.ms-excel");header("Content-Disposition:filename=test.xls");echo "test1\t";echo "test2\t\n";echo "test1\t";echo "test2\t\n";echo "test1\t";echo "test2\t\n";echo "test1\t";echo "test2\t\n";echo "test1\t";echo "test2\t\n";echo "test1\t";echo "test2\t\n"; 

读书人网 >PHP

热点推荐