PDO Quote problems -


i have problem, , can't undertstand why, i'am new on php, in case problem if example want send email php,

$email=$con->quote($_post['email']);  $to = "$email"; $subject = "example"; $message = "example"; $headers = "from:" . $from; $mail= mail($to,$subject,$message, $headers); 

this don't work, if write $email=$_post['email']; work, , can't understand why, prefer work quoted variable, avoid sql injection. in advice, have day!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -