Parameterized Queries

前端 未结 2 388
旧巷少年郎
旧巷少年郎 2021-01-27 06:05

I am currently learning parametrized queries as there are advantages to using them.

Could someone give some pointers by converting this block of code to a parametrized v

2条回答
  •  时光说笑
    2021-01-27 06:09

    The general rule is: Every variable should be binded, no inline variables at all.

    Technical details: http://php.net/manual/en/pdo.prepare.php

提交回复
热议问题