Thanks, that looks like what I need.
A related question: do you know if the where method of zend_db_select will
also do this?
cayley
Bill Karwin wrote:
>
> Try this:
>
> $sql = $db->quoteInto("select name from resource where id in ( ? )",
> $id);
>
> The quoteInto() method recognizes an array argument as a special case. It
> joins the values of the array together in a comma-separated list, and
> substitutes that for the placeholder character. This is useful in cases
> like the one you describe.
>
> Regards,
> Bill Karwin
>
--
View this message in context:
http://www.nabble.com/Passing-array-of-values-to-db-statement-tp15813319s16154p15814061.html
Sent from the Zend Framework mailing list archive at Nabble.com.