note 83575 added to mysqli-stmt.bind-param
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 02 Jun 2008 16:04:56 +0000 |
| Subject: | note 83575 added to mysqli-stmt.bind-param | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140069@lists.php.net to get a copy of this message | ||
dams at php dot net: You can't use this function for getting results, that is what bind_result
is for.
I noticed that if you try to use a ? to match a column that doesn't exist, you get a warning
that there are too many variables in the bind_param call, for instance:
$stmt->prepare ("INSERT INTO t (badname) VALUES (?)");
$stmt->bind_param("s", $val);
----
Server IP: 89.248.170.61
Probable Submitter: 131.155.27.42
----
Manual Page -- http://www.php.net/manual/en/mysqli-stmt.bind-param.php
Edit -- https://master.php.net/note/edit/83575
Del: integrated -- https://master.php.net/note/delete/83575/integrated
Del: useless -- https://master.php.net/note/delete/83575/useless
Del: bad code -- https://master.php.net/note/delete/83575/bad+code
Del: spam -- https://master.php.net/note/delete/83575/spam
Del: non-english -- https://master.php.net/note/delete/83575/non-english
Del: in docs -- https://master.php.net/note/delete/83575/in+docs
Del: other reasons-- https://master.php.net/note/delete/83575
Reject -- https://master.php.net/note/reject/83575
Search -- https://master.php.net/manage/user-notes.php