求教下,按照字段保存到一个表格了

解决方案 »

  1.   

    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";
    运行试试,扩展以上代码就行了。
      

  2.   

    如果比较复杂可以是用phpexcel
    http://hi.baidu.com/zcx1357/blog/item/a0b89736b116d52e0b55a95a.htmlhttp://phpexcel.codeplex.com/