note 123558 added to mysqli-stmt.bind-param
| From: | andersmmg at gmail dot com | Date: | Tue, 29 Jan 2019 07:29:29 +0000 |
| Subject: | note 123558 added to mysqli-stmt.bind-param | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210129@lists.php.net to get a copy of this message | ||
I sometimes forget that you can't put functions inside. For example:
If I wanted to use md5() on a value like so:
<?php
$stmt->bind_param("s",md5($val));
?>
If would not work. Because it uses the variables by binding them, you need to change them beforehand
like this:
<?php
$val = md5($val);
$stmt->bind_param("s",$val);
?>
----
Server IP: 208.43.231.9
Probable Submitter: 82.199.157.35 (proxied: 207.50.144.18)
----
Manual Page -- http://php.net/manual/en/mysqli-stmt.bind-param.php
Edit -- https://master.php.net/note/edit/123558
Del: integrated -- https://master.php.net/note/delete/123558/integrated
Del: useless -- https://master.php.net/note/delete/123558/useless
Del: bad code -- https://master.php.net/note/delete/123558/bad+code
Del: spam -- https://master.php.net/note/delete/123558/spam
Del: non-english -- https://master.php.net/note/delete/123558/non-english
Del: in docs -- https://master.php.net/note/delete/123558/in+docs
Del: other reasons-- https://master.php.net/note/delete/123558
Reject -- https://master.php.net/note/reject/123558
Search -- https://master.php.net/manage/user-notes.php