title: PDO,prepare use
body: <pre><code>if($_POST["type"] == "checkEmail")
           {
                $sql = "SELECT *  FROM `user` WHERE user_email=:email";
                $statement = $mysql-&gt;prepare($sql);
  
                $email = $mysql-&gt;quote($_POST["email"]);
                $statement-&gt;execute(Array(":email"=&gt;$email));
                $re = $statement-&gt;fetchAll();
                if(1)
                   print_r(json_encode($re));//echo json_encode("Sorry,Some has tood that good e-mail:&lt;");
                else
                   print_r(json_encode($re));
           }
  </code></pre>
  
  <p>I tried to use query function and it worked! But the prepare function didn't work!</p>