Home > Backend Development > PHP Tutorial > 关于header(),该怎么处理

关于header(),该怎么处理

WBOY
Release: 2016-06-13 12:46:38
Original
996 people have browsed it

关于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 {  
$sql="INSERT INTO  Progress (day,city) VALUES ('$d','$i')";
$insertdb_result=mysql_query($sql, $con_db);
echo $i."";
$d++;
}

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

php
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template