Call to a member function on null?
I have done all sorts of things to understand what is actually wrong with the code, but I just couldn’t figure out what was causing this error. Below is class called Topic : class Topic { // Init DB variables private $db; /* * Constructor */ public function __contruct() { $this->db = new Database(); } … Read more