note 85798 added to pdostatement.bindparam
| From: | ivanovatabvdotbg at osu1 dot php dot net | Date: | Thu, 18 Sep 2008 09:16:29 +0000 |
| Subject: | note 85798 added to pdostatement.bindparam | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144505@lists.php.net to get a copy of this message | ||
@bjornie at nowhere
You could do the concatenation in the query itself like this:
$stmt = $pdh->prepare("SELECT id, uname FROM tbl WHERE uname LIKE
'%'||:uname||'%'");
.......
----
Server IP: 217.75.128.29
Probable Submitter: 194.153.145.235
----
Manual Page -- http://www.php.net/manual/en/pdostatement.bindparam.php
Edit -- https://master.php.net/note/edit/85798
Del: integrated -- https://master.php.net/note/delete/85798/integrated
Del: useless -- https://master.php.net/note/delete/85798/useless
Del: bad code -- https://master.php.net/note/delete/85798/bad+code
Del: spam -- https://master.php.net/note/delete/85798/spam
Del: non-english -- https://master.php.net/note/delete/85798/non-english
Del: in docs -- https://master.php.net/note/delete/85798/in+docs
Del: other reasons-- https://master.php.net/note/delete/85798
Reject -- https://master.php.net/note/reject/85798
Search -- https://master.php.net/manage/user-notes.php