imskully / php-mysqli-simplified
MySQLi interface usage further simplified.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/imskully/php-mysqli-simplified
Requires
- php: >=5.3.0
- ext-json: *
This package is auto-updated.
Last update: 2025-10-20 08:15:44 UTC
README
A further improved and simplified usage of the MySQLi driver achieved by using overload functions that provide simplistic usage and a shorter syntax.
API Functions
fetch($db, $query)
Executes the specified query and returns the first result.
@param $db String The database name to use for this query. @param $query String The SQL query. @return bool|string[] The mysqli response if fetch was successful, false otherwise.
fetchAll($db, $query)
Executes the provided query and returns an array of all results.
@param $db String The database name. @param $query String The SQL query. @return array|bool An array containing the mysqli response if fetch was successful, false otherwise.
execute($db, $query)
Executes the provided query.
@param $db String The database name. @param $query String The SQL query. @return bool Returns true if the query executed, false otherwise.
escape($data, $db)
Runs the mysqli_escape_string() to escape special characters from the string.
@param $data String The variable or data to escape. @param string $db The database of which charset to use, if none provided then the default server is used. @return String Returns the data escaped.