Download the PHP package softon/mysqli-dbclass without Composer
On this page you can find all versions of the php package softon/mysqli-dbclass. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download softon/mysqli-dbclass
More information about softon/mysqli-dbclass
Files in softon/mysqli-dbclass
Package mysqli-dbclass
Short Description A simple Object Oriented approach for accessing Mysql Databases.
License MIT
Informations about the package mysqli-dbclass
mysqliDBclass
MySQLi Database Class for PHP Developers
A simple Object Oriented approach for accessing Mysql Databases. This class will make your life easy while developing your products and saves a lot of time that is wasted while creating simple CRUD operations. This class also suports Transactions. Good Error Reporting and Debuging features. Additional quick commands that provide better security and ease of developing. Refer example.php for all the sample code.
This class is an enhanced version of PHP MySQL wrapper v3 by ricocheting.com. Hence it is compatible with the class. To use the enhanced MySQL Wrapper simply include the Database.class.php in your code and everything should work as before.
How to Setup
Before you start, edit the config.inc.php to match your database credentials. Then include the Class file and config file on the top of the code where you want to use the class as show below.
include_once('config.inc.php');
include_once('Database.php');
Create a DB object to interact with the class.
$db = new Database(DB_SERVER,DB_USER,DB_PASS,DB_DATABASE);
You are all set to run any query with this $db object. If you are inside a function or a another class you may call the obtain function to recover the $db object.
$db = new Database::obtain();