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
Post a Comment