Just change the condition to:
if(isset($_REQUEST['userid']) && $_REQUEST['userid'] > $user_hack)
isset
tells is a variable is set, while this statement may be true or false, on which you cannot call isset
function.
Until you check if(isset($_REQUEST['userid']))
, you cannot assign it to $userid
variable.
2
solved Fatal error in if stament [duplicate]