输入banner图图片脚本导航/分类

防止SQL注入的方法

and passwd=:b ;";

      $stmt=$pdo->prepare($sql);

      $stmt->execute(array(:a=>$username,:b=>$passwd));

  占位符形式2??:

      $username=$_POST(username);

      $passwd=$_POST(passwd);

      $sql="select * from users where username=and passwd=? ;";

      $stmt=$pdo->prepare($sql);

      $stmt->execute(array($username,$passwd));

防止SQL注入的方法

标签: