avoiding MySQL injections with the Zend_Db class

后端 未结 7 2113
一生所求
一生所求 2020-12-02 21:31

I currently use Zend_Db to manage my queries. I\'ve written already code that preforms queries like the one below:

$handle->select()->from(\'user_id\')
              


        
7条回答
  •  渐次进展
    2020-12-02 22:08

    The bit that should make you feel safe is the ? marks in the where clauses. These are parameters, which are safely replaced with the second argument by the database system.

提交回复
热议问题