Fatal error: Uncaught PDOException: could not find driver in C:\Users\name\Documents\KoolReportsProject\koolreport\core\src\datasources\PdoDataSource.php:114
when connecting to a database with the code:
class report extends \koolreport\KoolReport{
public function settings(){
return array(
"dataSources"=>array(
"postgresqldata"=>array(
"connectionString" => "postgresql:host=hostname;dbname=nam",
"username" => "user",
"password" => "pw",
"charset" => 'utf8'
)
)
);
}
This is my first time connecting to a database as my datasource. Are any parts of my code wrong or am I missing something with installation? The respective login info is just redacted of course, I put the real working ones in there; but I wasn't sure if my connectionString variable names were right. Thanks in advance for the help.