ADOdb_Session::database

Syntax
string ADOdb_Session::database(
  optional string $database
  )

Description

The static method database sets or gets the ADOdb database name on the session connection. This is not the same value as the driver associated with the database abstraction layer.

The value must be set before config() is called

Use As A Getter

When used without parameters it returns the currently set value

Usage

 
include_once 'adodb/adodb.inc.php';
include_once "adodb/session/adodb-session2.php";
 
ADOdb_Session::database('adodb-database');
ADOdb_Session::config('oci8',$host,$user,$pass);