Demonic Posted March 9, 2008 Share Posted March 9, 2008 case self::E_SQL: $this->E_MSG = "Error Type::" . self::E_SQL . "::Sql error has occurred::";//line 15 break; Fatal error: Using $this when not in object context in C:\xampp\htdocs\nevux\testlounge\nbbError.php on line 15 Code: http://example.cleanscript.com/yeah.phps I personally don't see any errors in my code, but I get this error some how. Link to comment https://forums.phpfreaks.com/topic/95246-this-not-in-object-context/ Share on other sites More sharing options...
Demonic Posted March 9, 2008 Author Share Posted March 9, 2008 nvm I was calling the class staticly and that function was using $this which I couldn't do. Thanks me. Link to comment https://forums.phpfreaks.com/topic/95246-this-not-in-object-context/#findComment-487871 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.