A DB connection.
We obtain DB information from the config.php file.
Create a new DbConn instance. Create database and tables if needed.
We don't ask for parameters because it cames from globals parameters.
Yes, I know, is not the best way, but life's short!
Create all tables if they don't exists. Also select the database.
field_exists |
( |
|
$fieldname | ) |
|
|
protected |
This field name exists in the last results?
- Returns
- true if it does, false otherwise.
query |
( |
|
$sql, |
|
|
|
$params = [] |
|
) |
| |
Retrieve all the field values.
- Returns
- a Array with mixed elements (depends on the query).
-
false if the field doesn't exists.
Retrieve the n-th row from the last results.
- Parameters
-
num | A positive integer from cero (inclusive) and the amount of rows minus one inclusive. |
- Returns
- An associative Array where its keys are the field names and its values are the field value. False if the row number is out of boundaries.
- See also
- http://php.net/manual/en/mysqli-result.fetch-assoc.php
The DB connection. Needed by the mysql_connect() PHP function.
The documentation for this class was generated from the following file: