I have code with the following form:
tralalala(); } $con = connectToDatabase;//This would a
you probably need to tell it to look in the global scope:
function doSomething() { global $con; $con->tralalala(); }