File/program/lib/database/mysqli.class.php

Description

/program/lib/database/mysqli.class.php - access to mysql via database class

This file is included from the poor mans database factory in databaselib.php. It provides all necessary functionality to use MySQL as the underlying database server via the mysqli interface.

This file defines two classes: DatabaseMysqli and DatabaseMysqliResult. Typical usage would be:

    $DB = new DatabaseMysqli($table_prefix);    // once at program start $DB->connect($host,$usr,$pwd,$dbname);      // once at program start $sql = "SELECT * FROM {$DB->prefix}foo";    // select all rows from table foo, $DBResult = $DB->query($sql); $all_rows = $DBResult->fetch_all_assoc()    // store everything in an array, $DBResult->close();                         // and free the memory ...                                         // do something with $all_rows $DB->close();                               // once at program end

Note that this class is very similar to mysql.class.php.

Classes
Class Description
 class DatabaseMysqli MySQL database
 class DatabaseMysqliResult MySQL database result
Constants
SQL_FALSE = 0 (line 50)

this circumvents the sub-optimal implementation of booleans in MySQL

SQL_TRUE = 1 (line 53)

this circumvents the sub-optimal implementation of booleans in MySQL

Documentation generated on Tue, 28 Jun 2016 19:10:42 +0200 by phpDocumentor 1.4.0