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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -