This invitation seems to be for someone else. $userid, which is , does not match $opponent, which is timurthelenk. $userid, which is , does not match $_SESSION["userid"], which is timurthelenk.
This tells me that $userid has an empty value, yet in the tests I've run, $userid is normally the value entered in the userid field of the form. I'm not sure why you would be getting a different value. Are you using a form with the userid field filled in?
This tells me that $userid has an empty value, yet in the tests I've run, $userid is normally the value entered in the userid field of the form. I'm not sure why you would be getting a different value. Are you using a form with the userid field filled in?