Open wewowaw opened 3 years ago
Fatal error: Uncaught Error: Call to undefined method Database::prepare() in C:\xampp\htdocs\php\libraries\Database.php:31 Stack trace: #0 C:\xampp\htdocs\php\libraries\Topic.php(13): Database->query('select topics.*...') #1 C:\xampp\htdocs\php\index.php(12): Topic->getAllTopics() #2 {main} thrown in C:\xampp\htdocs\php\libraries\Database.php on line 31
line 30 : public function query($query){ line 31 : $this->stmt = $this->dbh->prepare($query); line 32 : }
please how can i fix this problem
i'm trying to fix it too
Fatal error: Uncaught Error: Call to undefined method Database::prepare() in C:\xampp\htdocs\php\libraries\Database.php:31 Stack trace: #0 C:\xampp\htdocs\php\libraries\Topic.php(13): Database->query('select topics.*...') #1 C:\xampp\htdocs\php\index.php(12): Topic->getAllTopics() #2 {main} thrown in C:\xampp\htdocs\php\libraries\Database.php on line 31
line 30 : public function query($query){ line 31 : $this->stmt = $this->dbh->prepare($query); line 32 : }