I am trying to get this code to work...
##### User #####
$uz0rid = $_COOKIE['user_id'];
define("USER_ID", $uz0r_id);
########## Functions ###########
function is_logged() {
global USER_ID;
if (empty(USER_ID)) return 0;
else return 1;
}
I am getting an error on the part where it says
global USER_ID;
Saying it is expecting a $ or something like that. How can I get this to work?