## db_get_info

string db_get_info (string info)

Returns information about the database and wrapper according to the string info. The parameter info is not case-sensitive. Possible values are:

Value of info | Meaning | Type | Example
--- | --- | --- | ---
"version" | A string with the database type, version and wrapper version | string | SQLite 2.8.11 with Database Wrapper db_v2b
"dbtype" | The type pf database ("SQLite" or "MySQL") | string | SQLite
"dbversion" | The version number of the database library | string | 2.8.11
"wrapversion" | The version identifier of the database wrapper | string | dv_v2b

If info is not one of the above values, a warning message will be displayed.

Arguments

info is the string that describes the information to be returned.

Result

The function returns the requested value.

Example

`// Get database type and version plus wrapper version $version = db_get_info("version");`

See also

Database functions
Database support