note 118662 added to pdostatement.bindvalue
| From: | D.Kellner | Date: | Fri, 15 Jan 2016 17:48:03 +0000 |
| Subject: | note 118662 added to pdostatement.bindvalue | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204694@lists.php.net to get a copy of this message | ||
When binding parameters, apparently you can't use a placeholder twice (e.g. "select * from
mails where sender=:me or recipient=:me"), you'll have to give them different names
otherwise your query will return empty handed (but not fail, unfortunately). Just in case
you're struggling with something like this.
----
Server IP: 72.52.91.14
Probable Submitter: 37.76.41.214
----
Manual Page -- http://php.net/manual/en/pdostatement.bindvalue.php
Edit -- https://master.php.net/note/edit/118662
Del: integrated -- https://master.php.net/note/delete/118662/integrated
Del: useless -- https://master.php.net/note/delete/118662/useless
Del: bad code -- https://master.php.net/note/delete/118662/bad+code
Del: spam -- https://master.php.net/note/delete/118662/spam
Del: non-english -- https://master.php.net/note/delete/118662/non-english
Del: in docs -- https://master.php.net/note/delete/118662/in+docs
Del: other reasons-- https://master.php.net/note/delete/118662
Reject -- https://master.php.net/note/reject/118662
Search -- https://master.php.net/manage/user-notes.php