PHP 防止 SQL Injection


PHP 要预防 SQL Injection, 可以用 PHP 内建功能实现, 下面分别是 PDO 及 MySQLi 预防方法:

PDO:

MySQLi:

Tags:

Leave a Reply