Last active
April 12, 2018 09:43
-
-
Save plankes-projects/afbe1d66eb08262a0f1484cf9fbaf402 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dbConfig = [ | |
'driver' => <data>, | |
'host' => <data>, | |
'port' => <data>, | |
'database' => <data>, | |
'username' => <data>, | |
'password' => <data>, | |
'charset' => <data>, | |
'collation' => <data>, | |
'prefix' => '', | |
'options' => [ | |
\PDO::ATTR_TIMEOUT => 36000, | |
] | |
]; | |
$db = new DB(); | |
$db->addConnection($dbConfig); | |
$db->setAsGlobal(); | |
DB::connection()->select(<query>, <params>); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment