php - What is the PDO equivalent of mysql_real_escape_string? -
php - What is the PDO equivalent of mysql_real_escape_string? -
this question has reply here:
how can prevent sql-injection in php? 28 answershow can security pdo or equivalent pdo secure function?
function secure($string){ return(mysql_real_escape_string(htmlspecialchars(strip_tags($string)))); }
man php: have utilize function pdo::quote()
http://php.net/manual/en/pdo.quote.php
php mysql security pdo
Comments
Post a Comment