How can I make this PHP snippet accessing SQL secure?
255
How can I prevent SQL injection in PHP?
74406
SQL injection that gets around mysql_real_escape_string()
47263
PHP source code security on server
29246
PDO Connect with an encrypted password?
46503
Do htmlspecialchars and mysql_real_escape_string keep my PHP code safe from injection?
29405
What is SQL injection?
23643
How to protect configuration file in PHP?
26044
Obfuscate PHP code
107222
Exploitable PHP functions
151556
Escaping MySQL wild cards
124800
PHP Codes are displaying in HTML
23736
How to avoid echoing character 65279 in php?
93041
using nulls in a mysqli prepared statement
52580
How to prevent PDO from interpreting a question mark as a placeholder?
115240
How do I test an application for SQL injections?
36635
Are PDO prepared statements sufficient to prevent SQL injection?
147306
Postfix (SASL) / MySQL: Use MD5 Encryption?