An open API service indexing awesome lists of open source software.

https://github.com/par7133/fastmysql

FastMySql class, the smart DB class - BSD License
https://github.com/par7133/fastmysql

class db fast fast-to-implement fastmysql opensource php

Last synced: 10 months ago
JSON representation

FastMySql class, the smart DB class - BSD License

Awesome Lists containing this project

README

          

FastMySql

FastMySql class

@package OpenGallery http://github.com/par7133
@author Daniele Bonini
@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