首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

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

2012-04-27 
php读取数据库内容保存到excel里求教下,按照字段保存到一个表格了[解决办法]PHP codeheader(Content-type

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"; 

热点排行