• 技术文章 >后端开发 >php教程

    关于header(),该怎么处理

    2016-06-13 12:46:38原创476
    关于header()
    header ( "Content-Type:application/vnd.ms-execl" );
    header ( "Content-Disposition:filename=test.xls" );
    $con_db = mysql_connect("localhost","root","patest");
    mysql_select_db("Dataput", $con_db);
    $d=0;
    for ($i=0;$i<6;$i++)
    {
    $sql="INSERT INTO Progress (day,city) VALUES ('$d','$i')";
    $insertdb_result=mysql_query($sql, $con_db);
    echo $i."
    ";
    $d++;
    }

    发现数据中并没有像预想的那样插入6条数据,请高手赐教
    php

    20期PHP线上班

    相关文章推荐

    精选22门好课,价值3725元,开通VIP免费学习!• ThinkPHP实现递归无级分类代码少_PHP• PHP实现通过中文字符比率来判断垃圾评论的方法_PHP• ThinkPHP视图查询详解_PHP• php中session退出登陆问题_PHP• php 不使用js实现页面跳转_PHP
    1/1

    PHP中文网