public static function getdb_by_platformid($platformid) { $userid = AutoIncIdGenerator::genid($platformid); if ($userid) { return ServerConfig::connect_shop_mysql($userid, 1); } }