Zend_Db_Select where() and Zend_Db_Adapter quoteInto()
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-05-20T18:37:38Z
Indexed on
2010/05/20
18:40 UTC
Read the original article
Hit count: 142
Are Zend_Db_Select's where() method, when including the optional value to quite into, and Zend_Db_Adapte's quoteInto() methods basically the same as far as escaping SQL?
In other words, are these two pieces of quote identical and equally secure?
$select->where($this->getAdapter()->quoteInto('id = ?', 3));
$select->where(id = ?, 3);
Thanks!
© Stack Overflow or respective owner