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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -