BLACK HILL SYSTEMS
Published on BLACK HILL SYSTEMS (http://www.blackhillsystems.com)

Home > MOUSE - Application Development Framework > Core Classes > DB.php

DB.php

This class extends the Mouse core class. It is extended by any data class object.

It utilizes the mysqli extension for the MySQL Database. It obtains its configuration details from the config.php file and the php.ini configuration file.

$this->mysqli = new mysqli(ini_get("mysqli.default_host"), ini_get("mysqli.default_user"), ini_get("mysqli.default_pw"), lms_get_env_val('db.db'));

Key public methods include:

db_prepare($sql, $bndprms)
db_write($stmt)
commit()  --optional
rollback()  --optional

  • Log in [1] to post comments

Source URL: http://www.blackhillsystems.com/?q=node/9

Links
[1] http://www.blackhillsystems.com/?q=user/login&destination=node/9%23comment-form