Host name.
Represented the DD class instance.
Help to implement the Singleton design pattern.
User password for database.
Database username.
Affected row, returned by last query (DML Queryes).
Database name.
PDO fetch mode.
This variable use we to setting the PDO fetching mode.
Last query, used by this class.
Contain the last result.
After we execute the last query, we obtain a PDO statement.
Row count, returned by last query.
Format a mySQL string correctly for safe mySQL insert (no mater if magic quotes are on or not)
Helper function, walk the array, and modify the values.
Constructor.
Implements the Singleton design pattern.
Return a result set.
Similar to getResults(), but in this case not need to write a query. The generated query is based on $where associative Array and $table.
Ex.
Delete a record from a table.
Ex. $table = 'tableName'; $where = array('id = 12','AND name = "John"'); OR $where = 'id = 12';
Execute a query (INSERT, UPDATE, DELETE).
This function can be used from DB class methids.
Returns the number of rows affected by the last SQL statement.
Insert a value into a table.
Execute a query.
This function can be used from DB class methods.
Execute a query.
This function can be used from external. The function separate the simple queryes and the INSERT, UPADTE, DELETE queries. Do not use this function without escape the data with function DB::escape
Set the PDO fetch mode.
Update a value(s) in a table
Ex: $table = 'tableName'; $data = array('text'=> 'value', 'date'=> '2009-12-01'); $where = array('id=12','AND name="John"'); OR $where = 'id = 12';
Documentation generated on Fri, 06 Mar 2009 11:07:37 +0200 by phpDocumentor 1.4.0