note 107577 added to mysqli-stmt.bind-param
| From: | afaaro at gmail dot com | Date: | Sun, 19 Feb 2012 04:27:09 +0000 |
| Subject: | note 107577 added to mysqli-stmt.bind-param | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186217@lists.php.net to get a copy of this message | ||
Can anyone give me advice of updating the script gives me an error:;
$sql = $db->prepare("UPDATE category SET name='$name',desc='$desc' WHERE
cid=?");
$sql->bind_param('i', $cid);
$sql->execute();
this is the error: Fatal error: Call to a member function bind_param() on a non-object
----
Server IP: 69.147.83.197
Probable Submitter: 86.180.33.49
----
Manual Page -- http://www.php.net/manual/en/mysqli-stmt.bind-param.php
Edit -- https://master.php.net/note/edit/107577
Del: integrated -- https://master.php.net/note/delete/107577/integrated
Del: useless -- https://master.php.net/note/delete/107577/useless
Del: bad code -- https://master.php.net/note/delete/107577/bad+code
Del: spam -- https://master.php.net/note/delete/107577/spam
Del: non-english -- https://master.php.net/note/delete/107577/non-english
Del: in docs -- https://master.php.net/note/delete/107577/in+docs
Del: other reasons-- https://master.php.net/note/delete/107577
Reject -- https://master.php.net/note/reject/107577
Search -- https://master.php.net/manage/user-notes.php