关于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条数据,请高手赐教