Manuál PHP | ||
---|---|---|
PÅ™edcházejÃcà | Dalšà |
PDOStatement->execute()
(no version information, might be only in CVS)
PDOStatement->execute() -- Executes a prepared statementPopis
class PDOStatement {bool execute ( [array input_parameters] )
}
Execute 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
Seznam parametrů
input_parameters
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.
PÅ™Ãklady
PÅ™Ãklad 2. Execute a prepared statement with an array of insert values (named parameters)
|
PÅ™Ãklad 3. Execute a prepared statement with an array of insert values (placeholders)
|
PÅ™Ãklad 4. Execute a prepared statement with question mark placeholders
|
Viz také
PDO->prepare() |
PDOStatement->bindParam() |
PDOStatement->fetch() |
PDOStatement->fetchAll() |
PDOStatement->fetchColumn() |
PÅ™edcházejÃcà | Domů | Dalšà |
PDOStatement->errorInfo() | Nahoru |