selectDb

Support for this function is limited. Check the driver documentation to see if it supported

Syntax
  bool selectDb(
      string $database
     )

Description

In products that allow a database-less connection, or that allow switching databases, this function allows switching.

Usage

$bool = $db->selectDb('test');
/*
 * $bool indicates the success of the switch
 */