note 53181 deleted from function.mysqli-stmt-bind-param by nlopess

From: Date: Wed, 23 Nov 2005 20:48:05 +0000
Subject: note 53181 deleted from function.mysqli-stmt-bind-param by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98997@lists.php.net to get a copy of this message
Note Submitter: phpdevelopment_nospam at emanuelgreisen dot dk ---- Notice that when assigning new values to the bound variables, the new values are REQUIRED to have correct type. _ Not good: _ $stmt->bind_param('i', $i); $i = "10"; $stmt->execute(); _ Good: _ $stmt->bind_param('i', $i); $i = 10; $stmt->execute(); This might seem obvious, but often (lets assume you get your data form an XML-document) your variables have incorrect types, and then they are not set at all in the mysqli_stmt

« previous php.notes (#98997) next »