PHP » GoLang |
login |
register |
about
|
GoLang PDOStatement::bindParam
request it (483)
GoLang replacement for PHP's PDOStatement::bindParam
[edit | history]
PDOStatement::bindParam(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0) PDOStatement::bindParam — Binds a parameter to the specified variable name Description
public bool PDOStatement::bindParam
( mixed
$parameter
, mixed &$variable
[, int $data_type = PDO::PARAM_STR
[, int $length
[, mixed $driver_options
]]] )Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement. Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called. Most parameters are input parameters, that is, parameters that are used in a read-only fashion to build up the query. Some drivers support the invocation of stored procedures that return data as output parameters, and some also as input/output parameters that both send in data and are updated to receive it. Parameters
Return Values
Returns ExamplesExample #1 Execute a prepared statement with named placeholders
<?php Example #2 Execute a prepared statement with question mark placeholders
<?php Example #3 Call a stored procedure with an INOUT parameter
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|