Support for this function is limited. Check the driver documentation to see if it supported
bool selectDb( string $database )
In products that allow a database-less connection, or that allow switching databases, this function allows switching.
$bool = $db->selectDb('test'); /* * $bool indicates the success of the switch */