DB_common::escapeSimple() (Previous) (Next) DB_common::executeMultiple()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

DB_common::execute()

DB_common::execute() -- Executes a prepared SQL statment

Описание

Merges the SQL statment you submitted to prepare() with the information in $data and then sends the query to the database.

Параметр

resource $stmt

query handle from prepare()

mixed $data

array, string or numeric data to be added to the prepared statement. Quantity of items passed must match quantity of placeholders in the prepared statement: meaning 1 placeholder for non-array parameters or 1 placeholder per array element.

Возвращаемое значение

mixed - a new DB_result object for queries that return results (such as SELECT queries), DB_OK for queries that manipulate data (such as INSERT queries) or a DB_Error object on failure

Заметка

Эта функция не должна вызываться статически.

Внимание

The values passed in $data must be literals. Do not submit SQL functions (for example CURDATE()). SQL functions that should be performed at execution time need to be put in the prepared statement.

DB_common::escapeSimple() (Previous) (Next) DB_common::executeMultiple()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.