Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected $fallback = 'mysql_fallback';
- public function __construct($host = "mysql", $user = "xxx", $pass = "xxx", $db = "xxx", $port=null, $socket=null) {
- @parent::__construct($host, $user, $pass, $db, $port, $socket);
- if ($this->connect_errno) {
- @parent::__construct($this->fallback, $user, $pass, $db, $port, $socket);
- }
- }
- $db = new myDbase();`
- if (!$db->connect_errno)`{
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement