SQLiteDatabase->exec()
SQLiteDatabase->exec - Executes a result-less query against a given database
Syntax
bool SQLiteDatabase->exec (
resource $dbhandle,
string $query,
string &$error_msg,
string $query,
resource $dbhandle,
string $query,
string &$error_msg,
resource $dbhandle,
string $query,
string &$error_msg,
string $query,
resource $dbhandle,
string $query,
string &$error_msg,
resource $dbhandle,
string $query,
string &$error_msg,
string $query,
resource $dbhandle,
string $query,
string &$error_msg)
Arguments
- dbhandle - The SQLite Database resource; returned from sqlite_open() when used procedurally. This parameter is not required when using the object-oriented method.
- query - The query to be executed. Data inside the query should be properly escaped.
- error_msg - The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can\'t be fetched using the sqlite_last_error() function.
- query
- dbhandle
- query
- error_msg
- dbhandle - The SQLite Database resource; returned from sqlite_open() when used procedurally. This parameter is not required when using the object-oriented method.
- query - The query to be executed. Data inside the query should be properly escaped.
- error_msg - The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can\'t be fetched using the sqlite_last_error() function.
- query
- dbhandle
- query
- error_msg
- dbhandle - The SQLite Database resource; returned from sqlite_open() when used procedurally. This parameter is not required when using the object-oriented method.
- query - The query to be executed. Data inside the query should be properly escaped.
- error_msg - The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can\'t be fetched using the sqlite_last_error() function.
- query
- dbhandle
- query
- error_msg
Description
Object oriented style (method):
Version
PHP 5, PECL sqlite >= 1.0.3
Return value
This function will return a boolean result; TRUE for success or FALSE for failure. If you need to run a query that returns rows, see sqlite_query().