![]() |
PHPDevShell 3.1.3-Stable
PHP OOP RAD Development Framework
|
Public Member Functions | |
| free () | |
| connect () | |
| query ($sql) | |
| protect ($param) | |
| fetchAssoc () | |
| seek ($row_number) | |
| numrows () | |
| affectedRows () | |
| returnSqlError ($query) | |
| debugInstance ($ignored=null) | |
| lastId () | |
| rowResults ($row=0) | |
| startTransaction () | |
| endTransaction ($commit=true) | |
Protected Attributes | |
| $dsn = '' | |
| $user = '' | |
| $password = '' | |
| $link = null | |
| $result | |
NOTE: you're not supposed to deal with connectors any way
| affectedRows | ( | ) |
Return the number of affected rows in the result of the query
Implements iPHPDS_dbConnector.
| connect | ( | ) |
Connect to the database server (compatibility method)
Implements iPHPDS_dbConnector.
| debugInstance | ( | $ | ignored = null | ) |
| endTransaction | ( | $ | commit = true | ) |
| fetchAssoc | ( | ) |
Return the next line as an associative array
Implements iPHPDS_dbConnector.
| free | ( | ) |
Clears the current connection (useful for example if we're fetching one row at a time and we give up before the end)
Implements iPHPDS_dbConnector.
| lastId | ( | ) |
Simply returns last inserted id from database.
Implements iPHPDS_dbConnector.
| numrows | ( | ) |
Return the number of rows in the result of the query
Implements iPHPDS_dbConnector.
| protect | ( | $ | param | ) |
Protect a single string from possible hacker (i.e. escape possible harmfull chars)
| $param | string, the parameter to espace |
Implements iPHPDS_dbConnector.
| query | ( | $ | sql | ) |
Actually send the query to MySQL (through $db)
| $sql | string, the actual sql query |
Implements iPHPDS_dbConnector.
| returnSqlError | ( | $ | query | ) |
This method returns the last MySQL error as a string if there is any. It will also return the actual erroneous SQL statement if the display_sql_on_error property is set to true. This is very helpfull when debugging an SQL related problem.
| string | The actual query string. |
| rowResults | ( | $ | row = 0 | ) |
Will return a single row as a string depending on what column was selected.
| seek | ( | $ | row_number | ) |
Move the internal pointer to the asked line
| $row_number | integer, the line number |
Implements iPHPDS_dbConnector.
| startTransaction | ( | ) |
Start SQL transaction.
Implements iPHPDS_dbConnector.
$dsn = '' [protected] |
$link = null [protected] |
$password = '' [protected] |
$result [protected] |
$user = '' [protected] |