Fatal error: Uncaught Error: Call to a member function prepare()

MY ERROR IS POINTING TO THE CODE BLOCK BELOW

public function query($query){
$this->stmt = $this->dbh->prepare($query);
}

2 posts were merged into an existing topic: Fatal error: Uncaught Error: Call to a member function prepare() on line 31

Sponsor our Newsletter | Privacy Policy | Terms of Service