note 85798 deleted from pdostatement.bindparam by danbrown
| From: | danbrown@php.net | Date: | Tue, 24 Mar 2009 18:14:28 +0000 |
| Subject: | note 85798 deleted from pdostatement.bindparam by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152399@lists.php.net to get a copy of this message | ||
Note Submitter: ivanov at abv dot bg
----
@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||'%'");
.......