note 73155 deleted from ref.pdo by bjori
| From: | bjori@php.net | Date: | Sun, 11 Feb 2007 12:33:13 +0000 |
| Subject: | note 73155 deleted from ref.pdo by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123244@lists.php.net to get a copy of this message | ||
Note Submitter: lonewolf at greyskydesigns dot com
Reason: in docs
----
In response to letsgolee at lycos dot co dot kr:
> you cannot set a variable like string or int as a second parameter
> when you use bindParam() function.
>
> $stmt->bindParam(1, 50); // NOT WORK!
If you read the manual, it says: "PDOStatement->bindParam() â Binds a parameter to the
specified variable name"
Note the "specified variable name" part. Instead, you want $stmt->bindValue()
"PDOStatement->bindValue() â Binds a value to a parameter"