Possible Duplicate:
PHP PDO: Can I bind an array to an IN() condition?
Alright, this is really bothering me. How can I bind a paramater (which has multiple values) for an SQL "IN" statment in PHP's PDO?
Here are the basics...
$allow = "'red', 'blue'";
SELECT * FROM colors WHERE type IN (:allow);
$stmt->bindParam(':allow', $allow);
This works fine when I plug in $allow by itself, but when trying to bind it and use :allow it fails to work. Does anyone know why this is?
Note: I do have the rest of the PDO properly set with other variables (not strings) working, I just didn't include it because it's unnecessary.