note 115713 added to pdostatement.bindparam
| From: | amerador20 at gmail dot com | Date: | Fri, 12 Sep 2014 07:42:07 +0000 |
| Subject: | note 115713 added to pdostatement.bindparam | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200424@lists.php.net to get a copy of this message | ||
Hi, i have an error when i use a reserved keyword in a bindparam() function. I use in a database
field a the word 'unique' in some items, but when i send this query to mysql returned me
an null:
"SELECT *
FROM ItemsOptions
WHERE option = unique"
how can i use reserved keywords in a bindparam? i used escape special character such a ` but not
woks.
Thanks in advance
----
Server IP: 80.64.47.13
Probable Submitter: 193.145.230.7
----
Manual Page -- http://php.net/manual/en/pdostatement.bindparam.php
Edit -- https://master.php.net/note/edit/115713
Del: integrated -- https://master.php.net/note/delete/115713/integrated
Del: useless -- https://master.php.net/note/delete/115713/useless
Del: bad code -- https://master.php.net/note/delete/115713/bad+code
Del: spam -- https://master.php.net/note/delete/115713/spam
Del: non-english -- https://master.php.net/note/delete/115713/non-english
Del: in docs -- https://master.php.net/note/delete/115713/in+docs
Del: other reasons-- https://master.php.net/note/delete/115713
Reject -- https://master.php.net/note/reject/115713
Search -- https://master.php.net/manage/user-notes.php