Public Member Functions | |
DBJames () | |
ConnectDatabase () | |
CloseDatabase () | |
Query ($sql) | |
Execute ($sql) | |
SetInsertID () | |
GetFieldName ($col) | |
getValue ($col) | |
Next () | |
First () | |
Go ($pos) | |
Debug () | |
OpenFile () | |
CloseFile () | |
Public Attributes | |
$dbhost | |
The host where is the DB. | |
$dbuser | |
The user of the DB. | |
$dbpasswd | |
The password of the user of the DB. | |
$dbname | |
The name of the DB. | |
$rs | |
RecordSet. | |
$row | |
Row which contains the current record data. | |
$numRows | |
Number of rows affected after the query. | |
$numFields | |
Number of columns returned after the query. | |
$dbConnection | |
Pointer to the DB connection. | |
$sql | |
Last SQL query used. | |
$newID | |
New id automatically generated after an INSERT in the DB. | |
$EOF | |
Indicates if it is the last record. | |
$msgDebug | |
Debug message. | |
$numErr | |
Number of the error. | |
$desErr | |
Error description. | |
$debug = true | |
Debug activated. | |
$fileLog | |
Logs file. | |
$fileHdl | |
File handler. |
This object is specific to the MySql DB but it is possible to change it for other specific to other DB engine very easily
Definition at line 13 of file dbjames.class.php.
|
Constructor. It gets the configuration of the DB throw global variables and, then, it makes the connection to the DB. Definition at line 46 of file dbjames.class.php. References JSystem::GetConfig(). |
|
It ends a DB connection Definition at line 84 of file dbjames.class.php. |
|
Closes the error log file Definition at line 264 of file dbjames.class.php. |
|
Makes a connection to the DB with the parameters previously specified. Definition at line 61 of file dbjames.class.php. |
|
Used for the error log... Definition at line 237 of file dbjames.class.php. |
|
Makes a DB query (INSERTs, DELETEs, UPDATEs, ...).
Definition at line 135 of file dbjames.class.php. References $sql. |
|
Goes to the first row in the recordset Definition at line 215 of file dbjames.class.php. |
|
Gets the name of a column using mysql_field_name
Definition at line 173 of file dbjames.class.php. |
|
Gets the value of the current row for a specific field
Definition at line 184 of file dbjames.class.php. |
|
Goes to the row "pos" in the recordset.
Definition at line 225 of file dbjames.class.php. |
|
Goes to the next row in the recordset Definition at line 197 of file dbjames.class.php. |
|
Opens the error log file Definition at line 254 of file dbjames.class.php. |
|
Makes a DB query (just SELECTs)
Definition at line 95 of file dbjames.class.php. References $sql. |
|
Updates the newID after doing a new insertion calling to mysql_insert_id. Definition at line 160 of file dbjames.class.php. |
|
Pointer to the DB connection.
Definition at line 26 of file dbjames.class.php. |
|
The host where is the DB.
Definition at line 17 of file dbjames.class.php. |
|
The name of the DB.
Definition at line 20 of file dbjames.class.php. |
|
The password of the user of the DB.
Definition at line 19 of file dbjames.class.php. |
|
The user of the DB.
Definition at line 18 of file dbjames.class.php. |
|
Debug activated.
Definition at line 34 of file dbjames.class.php. |
|
Error description.
Definition at line 33 of file dbjames.class.php. |
|
Indicates if it is the last record.
Definition at line 29 of file dbjames.class.php. |
|
File handler.
Definition at line 36 of file dbjames.class.php. |
|
Logs file.
Definition at line 35 of file dbjames.class.php. |
|
Debug message.
Definition at line 31 of file dbjames.class.php. |
|
New id automatically generated after an INSERT in the DB.
Definition at line 28 of file dbjames.class.php. |
|
Number of the error.
Definition at line 32 of file dbjames.class.php. |
|
Number of columns returned after the query.
Definition at line 25 of file dbjames.class.php. |
|
Number of rows affected after the query.
Definition at line 24 of file dbjames.class.php. |
|
Row which contains the current record data.
Definition at line 23 of file dbjames.class.php. |
|
RecordSet.
Definition at line 22 of file dbjames.class.php. |
|
Last SQL query used.
Definition at line 27 of file dbjames.class.php. |