php读取数据库内容保存到excel里 求教下,按照字段保存到一个表格了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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";运行试试,扩展以上代码就行了。 如果比较复杂可以是用phpexcelhttp://hi.baidu.com/zcx1357/blog/item/a0b89736b116d52e0b55a95a.htmlhttp://phpexcel.codeplex.com/ 想采些文章,结果对方网站有反采集的该如何破啊? 谁用过Paypal,着急啊! 怎么显示的是代码呀!· 近期发现了一个关于zend studio7.2的一个问题 php 编辑器输出的问题 为什么二次调用数组文件时,不能完成对比比较? 有谁会配置Apache2+PHP5+pgsql+phpPgAdmin??? 如何解决这样的后退问题? 关于mysql_fetch_row() !!!HElp me!!我已经配置PHP+Oracle+Apache快一个星期了.......再搞不定就真死了~~~~ 文件上传类型限制 朋友问我一个PHP的问题,自己不会,所以跑来问大家!!
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";
运行试试,扩展以上代码就行了。
http://hi.baidu.com/zcx1357/blog/item/a0b89736b116d52e0b55a95a.htmlhttp://phpexcel.codeplex.com/