MMO Starter Kit

It’s a scope problem. You declare the variable in one scope, but want to access it in another, where it’s not accessible. I recommend you to go through at least one basic php tutorial before continuing.