This class encapsulates all of the functions for interacting with a database.
Gets or sets whether or not to automaticllay update the Modified and Created fields in the table (must be those exact names).
Gets or sets the name of the database.
If a value is provided, all errors will be written to this filename if possible.
Gets or sets the hostname of the database. If not provided, localhost will be assumed.
Gets the SQL text of the last query processed.
Gets or sets the database password.
Gets or sets the database username.
Constructor for the class.
Escapes the value to be placed in a field. This helps prevent problems with quotes, and also prevents SQL injection attacks.
Returns the number of rows affected by the last query
Inserts a record into the database.
Runs a query on the database that does not expect any return.
Performs an Update query on the database. Returns success or failure.
Runs a Select query on the database. Returns an associative array of rows.
Tests to make sure the connection to the database is open, and if not, attempts to re-open the connection. This prevents unnecessary connections to the database.
Performs an Update query on the database. Returns success or failure.