db\Command bindParam()

bindParam() public method

Binds a parameter to the SQL statement to be executed.

See also http://www.php.net/manual/en/function.PDOStatement-bindParam.php.

public $this bindParam ( $name, &$value, $dataType = null, $length = null, $driverOptions = null )
$name string|integer

Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter.

$value mixed

The PHP variable to bind to the SQL statement parameter (passed by reference)

$dataType integer

SQL data type of the parameter. If null, the type is determined by the PHP type of the value.

$length integer

Length of the data type

$driverOptions mixed

The driver-specific options

return $this

The current command being executed

doc_Yii
2016-10-30 16:57:21
Comments
Leave a Comment

Please login to continue.