Re:PHP: The Right Way
by jeltz on Saturday July 07, 2012 @06:47PM
(#4212958)
In my anecdotal experience SQL injection attacks are almost as often caused by relying on filtering data and then forgetting to filter it for some fields. You should instead rely on parametrized queries and only use string operations to build queries where you must (and then do it very carefully).
SQL injections are very rare to non-existent in code where the programmers generally rely on parametrized queries.
SQL injections are very rare to non-existent in code where the programmers generally rely on parametrized queries.