php网页报错 求解答
Parseerror:syntaxerror,unexpected$end,expectingT_VARIABLEorT_END_HEREDOCorT_DOLLAR_OP...
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_END_HEREDOC or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in control.php on line 28
代码如下:
<?
header("Content-Type:text/html;charset=utf-8");
$con = mysql_connect(SAE_MYSQL_HOST_M . ':' . SAE_MYSQL_PORT, SAE_MYSQL_USER, SAE_MYSQL_PASS); //官方提供的常量
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("app_our1501", $con);
$mysql = new SaeMysql();
$sql = "select name,number from `app_our1501`.`register` where state = '正在等待审核'";
$result = $mysql->getLine($sql);
var_dump($result);
mysql_close($con);
echo '<br/>';
echo $proname = $result['name'];
echo '<br/>';
echo<<<HTML
<form action="process.php" method="post">
<input type = "submit" value="通过">
输入拒绝信息:<input type="text" name="refuseinformation">
<input type = "submit" value="拒绝">
</form>
HTML;
?> 展开
代码如下:
<?
header("Content-Type:text/html;charset=utf-8");
$con = mysql_connect(SAE_MYSQL_HOST_M . ':' . SAE_MYSQL_PORT, SAE_MYSQL_USER, SAE_MYSQL_PASS); //官方提供的常量
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("app_our1501", $con);
$mysql = new SaeMysql();
$sql = "select name,number from `app_our1501`.`register` where state = '正在等待审核'";
$result = $mysql->getLine($sql);
var_dump($result);
mysql_close($con);
echo '<br/>';
echo $proname = $result['name'];
echo '<br/>';
echo<<<HTML
<form action="process.php" method="post">
<input type = "submit" value="通过">
输入拒绝信息:<input type="text" name="refuseinformation">
<input type = "submit" value="拒绝">
</form>
HTML;
?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询