note 107577 rejected from mysqli-stmt.bind-param by tularis

From: Date: Sun, 19 Feb 2012 20:34:02 +0000
Subject: note 107577 rejected from mysqli-stmt.bind-param by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186226@lists.php.net to get a copy of this message
Note Submitter: afaaro at gmail dot com ---- 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

« previous php.notes (#186226) next »