I have this session variable which i am trying to set to an access level when the users logs in with this:
$accessquery = mysql_query("SELECT roleid FROM person WHERE email = '". $email ."'");
$access = mysql_fetch_array($accessquery);
$_SESSION['Access'] = $access;
However it says that 'Access' is undefined, what is the problem?
EDIT*
if (($_SESSION['Access']) == "2")
Error appears here
EDIT*
Session Start has been called.