You’re using $this in a static function. This is why you got the error.
Remove the “static” in front of “insert()” and then call $insert->insert();
solved using $this when not in object’s context error [duplicate]
You’re using $this in a static function. This is why you got the error.
Remove the “static” in front of “insert()” and then call $insert->insert();
solved using $this when not in object’s context error [duplicate]