<?php
require_once 'src/getconn.php';
$results = mysql_query("select * from report where reportid = 14", $conn);
$rows = mysql_fetch_array($results);
$content="abc";
$fp=fopen("hello.html","wb"); if(fwrite($fp,$content))
{
fclose($fp);
die("写入模板成功");
}
else
{
fclose($fp);
die("写入模板失败!");
}
?>
红色字体总是报syntax error, unexpected T_VARIABLE in D:\www\network\show_report.php on line 14错误
求解
require_once 'src/getconn.php';
$results = mysql_query("select * from report where reportid = 14", $conn);
$rows = mysql_fetch_array($results);
$content="abc";
$fp=fopen("hello.html","wb"); if(fwrite($fp,$content))
{
fclose($fp);
die("写入模板成功");
}
else
{
fclose($fp);
die("写入模板失败!");
}
?>
红色字体总是报syntax error, unexpected T_VARIABLE in D:\www\network\show_report.php on line 14错误
求解
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货