tommyknocker / pdo-database-class

PHP PDO Wrapper which utilizes PDO and prepared statements
GNU Lesser General Public License v3.0
69 stars 46 forks source link

Errors in README - Advanced initialization #8

Closed harkor closed 5 years ago

harkor commented 5 years ago

The correct initialization

$db = new PDODb(['type' => 'mysql', 'host' => 'host', 'username' => 'username', 'password' => 'password', 'dbname'=> 'databaseName', 'port' => 3306, 'prefix' => 'my_', 'charset' => 'utf8' ]);

The error is for "dbname", in the README, it's 'db' =>

I lost 1 hour to find the problem ;)

tommyknocker commented 5 years ago

Sorry for that :) Fixed, will be on packagist when next release is ready.

harkor commented 5 years ago

No problem, it's weird no body see this before me :)

Have a nice day