Does pg_prepare() prepared statement (not PDO) prevent SQL-Injection?

后端 未结 4 1163
误落风尘
误落风尘 2021-01-20 11:50

PDO ist not supported in target system I\'m working on and though I seek a solution for preventing SQL-Injection using PHP 5.1.x on a

4条回答
  •  攒了一身酷
    2021-01-20 12:29

    As far as I could gather from the docs it should guard you against SQL injection.

    A more generic approach would be to use pg_query_params as it's not connected with preparing the query.

提交回复
热议问题