Returns information about the database and wrapper according to the string info.
string db_get_info(string info)
The parameter info is case-insensitive. 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 |
The function returns the requested value.
// Get database type and version plus wrapper version
$version = db_get_info("version");