Yes you can but I think fetchAll is deprecated in favour of select object

On Jan 1, 2009, at 0:34, Jason Webster <[email protected]> wrote:

You can do exactly that already. Your sample code will work as expected.

Mark Steudel wrote:
I was wondering if there is a quick way to do raw sql with multiple place holders.
e.g.
$sql = “SELECT id FROM table WHERE id = ? AND field2 = ?”;
$rows = $db->fetchAll( $sql, array( $id, $value ) );
I know I could do this using zend’s select, but sometimes this is just faster …
Thanks

Reply via email to