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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -