Get the Whitepaper called Avoiding SQL Injection.
You can download it from the following link: https://packetstormsecurity.com/files/download/79669/avoiding-sql.txt
Source: https://packetstormsecurity.com/files/79669/Paper-On-Avoiding-SQL-Injection.html

