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