php读取数据库内容保存到excel里
求教下,按照字段保存到一个表格了
——解决方案——————–
- PHP code
header("Content-type:application/vnd.ms-excel");header("Content-Disposition:filename=test.xls");echo "test1\t";echo "test2\t\<a>2本文来源gao*daima.com搞@代#码&网6</a><pre>搞gaodaima代码
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”;