关于header()
<?php
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."</br>";
$d++;
}
发现数据中并没有像预想的那样插入6条数据,请高手赐教
------解决方案--------------------不知道你想干什么