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 answers

how 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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -