Mysql supports prepared statements in this way:
http://dev.mysql.com/doc/refman/5.0/en/sql-syntax-prepared-statements.html
Is there a support for it in Zend
You can try like this
$sql = "SELECT * FROM table_name WHERE id = :id'"; $stmt = new Zend_Db_Statement_Pdo($this->_db, $sql); $stmt->execute(array(':id' => $id));