public static function myconnect($host, $dbname, $user, $pass, $type = "mysql") { if ($type == "mysql") { return self::$mydb = new MyDBMySQL($host, $dbname, $user, $pass); } if ($type == "mssql") { return self::$mydb = new MyDBMSSQL($host, $dbname, $user, $pass); } else { return false; } }