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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -