My Problem is how to prepare the data I want to bind to the :email parameter?
I wrote myself a function which takes all input (i.e. "me@example.com, you@example.com, hesheit@example.com") und returns a string like “‘me@example.com’,‘you@example.com’,‘hesheit@example.com’” (without the double quotes) but when i use the following code:
Quotation marks will be added by PDO class if u using bindValue or bindParams. and if u find here http://www.php.net/manual/en/pdo.constants.php and u will relized that there’s no PDO::PARAM_ARRAY~
I suggest that you can using CDbCriteria::addInCondition to solve this problem. if you like using DAO directly, you can check the sources of that class and see how it achieved.