(no version information, might be only in CVS)
PDOStatement::execute -- Executes a prepared statementExecute the prepared statement. If the prepared statement included parameter markers, you must either:
call PDOStatement::bindParam() to bind PHP variables to the parameter markers: bound variables pass their value as input and receive the output value, if any, of their associated parameter markers
or pass an array of input-only parameter values
An array of values with as many elements as there are bound parameters in the SQL statement being executed.
You cannot bind multiple values to a single parameter; for example, you cannot bind two values to a single named parameter in an IN() clause.
Ejemplo 2. Execute a prepared statement with an array of insert values
|
Ejemplo 3. Execute a prepared statement with question mark placeholders
|
| PDO::prepare() |
| PDOStatement::bindParam() |
| PDOStatement::fetch() |
| PDOStatement::fetchAll() |
| PDOStatement::fetchColumn() |