UC Berkeley succinctly describes what SQL Injection is and the basic steps to defend against it. Visit their site for the details. https://security.berkeley.edu/education-awareness/best-practices-how-tos/system-application-security/how-protect-against-sql

Download saved version of the Berkeley Page.