Public Member Functions |
| __construct ($host, $user, $password, $database, $port, $charset= 'UTF-8', $autocommit=true) |
| mQuery ($query) |
| last_insert_id () |
| count_rows ($table, $condition=null) |
| get_value ($table, $field, $condition=null) |
| get_function_value ($name, $params=null) |
Constructor & Destructor Documentation
__construct |
( |
$ |
host, |
|
|
$ |
user, |
|
|
$ |
password, |
|
|
$ |
database, |
|
|
$ |
port, |
|
|
$ |
charset = 'UTF-8' , |
|
|
$ |
autocommit = true |
|
) |
| |
The constructor
- Parameters:
-
string | $host | The host server |
string | $user | The user name |
string | $password | The password |
string | $database | The database name |
string | $charset | The charset [OPTIONAL] |
string | $autocommit | The autocommit [OPTIONAL] public |
- Returns:
- mysqli
Member Function Documentation
Gets the number of rows from a table
- Parameters:
-
string | $table | The table name |
string | $condition | The condition [OPTIONAL] public |
- Returns:
- int
Gets a value from a mysql function
- Parameters:
-
string | $name | The function name |
mixed | $params | The function parameters (a value or an array of values) [OPTIONAL] protected |
- Returns:
- mixed
get_value |
( |
$ |
table, |
|
|
$ |
field, |
|
|
$ |
condition = null |
|
) |
| |
Gets a field value based on a condition
- Parameters:
-
string | $table | The table name |
string | $field | The field name |
string | $condition | The condition [OPTIONAL] public |
- Returns:
- mixed
Gets the last inserted id public
- Returns:
- mixed
The query function (it calls the mysqli query function and checks for errors
- Parameters:
-
string | $query | The query public |
- Returns:
- mixed
The documentation for this class was generated from the following file: