我正在使用带有以下代码的头文件:
<?php
$ADMIN = False;
if(session_id() == '') {
// session has NOT been started
session_start();
}
else
{
// session has been started
}
?>
我必须检查管理变量状态的代码是这样的:
while ($row2 = mysql_fetch_array($account_type)){
if($row2['account_type'] == 'A'){
$ADMIN = 'true';}
else{$ADMIN = 'false';}
每次我尝试访问带有该站点的页面时,都会出现错误:
Parse error: syntax error, unexpected '$ADMIN' (T_VARIABLE)