note 73155 deleted from ref.pdo by bjori

From: 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"

« previous php.notes (#123244) next »