note 91370 rejected from pdostatement.bindparam by danbrown
| From: | danbrown@php.net | Date: | Tue, 09 Jun 2009 00:52:08 +0000 |
| Subject: | note 91370 rejected from pdostatement.bindparam by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156574@lists.php.net to get a copy of this message | ||
Note Submitter: php+spam at paulisageek dot com
----
What is the solution for binding to an IN query?
Doing :
$sql = 'select * from mytable where id in(:ids)';
$s = implode(",", $sources);
$stmt->bindParam(':ids', $s);
doesn't work.