Forum Moderators: coopster
Parse error: parse error, expecting `')'' in control.php on line 30
This is the code section where the error occurs:
if(isset($_COOKIE['username'])){
if(isAdmin($_COOKIE['username'])) $your_p='2';
elseif(isset($_COOKIE['username'],$_COOKIE['password'])) $your_p='1';
else $your_p='0';
}
else
{
$your_p='0';
}
Line 30, referred to in the error message, is the elseif line:
elseif(isset($_COOKIE['username'],$_COOKIE['password'])) $your_p='1';
Does anyone here know what the problem might be?
Thx,
May