cBrooks Core Database Utilities
At the moment, there isn't much required of this particular include. Simply connect, disconnect, and query functions.
Include Architecture, Dependancies & Other Notes
Dependancies:
- gbm_config.php
- PEAR DB
Provided Functions:
- cb_dbconnect () - Takes the information provided in the configuration file and uses it to connect to the database, using the PEAR DB database abstraction layer.
- _cb_dbdisconnect () - executes the disconnect command for the handle stored in the global $cb_db variable. This should be (and presently is) registered to execute on shutdown, closing off the open connection to the database.
- queryDB (str $sqlstatement) - execute the given $sqlstatement string on the open database; the handle for which is kept in the global $cb_db variable.
It is through this function that a number of things occur:- Database transaction logging
- Global user timeout variable is updated
- Error logs for error_handler.inc.php are automatically triggered on database error, if this in turned on in the config file.
