Is there a special method that will escape % sign and underscore? When i do
PDO->prepare()
does it escape % sign and underscore automatically?
i tried using \% or _ but i dont think it works. Also i want to check a string if string contains such characters.
Thank you
If you use PDO->prepare() why not do in the PDO->execute( array $params ) parameter binding. You do not need to worry about escaping with parameter binding.