can someone help me here ??
Code: Select all
class Permissions {
function get_perm($user_id) {
$sql = "select user,admin,superuser from permissions where id='$user_id'";
$exec_sql = mysql_db_query(DB_NAME, $sql);
$result = mysql_fetch_row($exec_sql);
if ($result[0]) {
$user_perm = $result[0];
$admin_perm = $result[1];
$superuser_perm = $result[2];
if ($superuser_perm == 1) {
return 3;
} elseif ($admin_perm == 1) {
return 2;
} elseif ($user_perm == 1) {
return 1;
} else {
return 0;
}
} else {
return 0;
}
} // function
}
?>Parse error: syntax error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in c:\program files\apache group\apache\htdocs\permissions.inc.php on line 34
it should be blank page... ???
***EDIT***
solved dind't do nothing but next day with a reboot to the machine start working perfectly...