note 72089 added to ref.pdo
| From: | letsgoleeatlycosdotcodotkr at osu1 dot php dot net | Date: | Tue, 02 Jan 2007 12:10:37 +0000 |
| Subject: | note 72089 added to ref.pdo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121185@lists.php.net to get a copy of this message | ||
you cannot set a variable like string or int as a second parameter when you use bindParam()
function.
$stmt = $db->prepare('insert into test (no, memo) values (?, ?);
$stmt->bindParam(1, 50); // NOT WORK!
$no = 50;
$stmt->bindParam(1, $no); // WORK!
----
Server IP: 203.202.10.60
Probable Submitter: 122.45.39.130
----
Manual Page -- http://www.php.net/manual/en/ref.pdo.php
Edit -- https://master.php.net/note/edit/72089
Del: integrated -- https://master.php.net/note/delete/72089/integrated
Del: useless -- https://master.php.net/note/delete/72089/useless
Del: bad code -- https://master.php.net/note/delete/72089/bad+code
Del: spam -- https://master.php.net/note/delete/72089/spam
Del: non-english -- https://master.php.net/note/delete/72089/non-english
Del: in docs -- https://master.php.net/note/delete/72089/in+docs
Del: other reasons-- https://master.php.net/note/delete/72089
Reject -- https://master.php.net/note/reject/72089
Search -- https://master.php.net/manage/user-notes.php