FastMySql class, the smart DB class - BSD License
Capitan Cloud 1df0dfb673 Update README.md | 1 年之前 | |
---|---|---|
LICENSE | 4 年之前 | |
README.md | 1 年之前 | |
class.fastmysql.inc | 4 年之前 |
FastMySql
FastMySql class
@package OpenGallery http://github.com/par7133
@author Daniele Bonini posta@elettronica.lol
@version 1.01
@phpver 5.6 to 7.3
@access public
@note You have to declare in your "config.inc" file - or whatever file you
use for the purpose, the following global constants:
define('DB_HOST', "p:your.db.ip.address");
define('DB_USER', "your_dbuser");
define('DB_PASSWORD', "your_dbpassword");
define('DB_DBNAME', "your_db_name");
define('DB_CHARSET', "utf8");
The class makes use of the following global functions:
function array_dim($array)
{
if (is_array(reset($array))) {
$retval = array_dim(reset($array)) + 1;
} else {
$retval = 1;
}
return $retval;
}
function array_keys_count(& $array)
{
return count(array_keys($array));
}
This class makes use of the class FastErr, part of the Open Gallery project and developed by me http://github.com/par7133