Feb05
SQL Injection Example and Prevention

SQL injection usually occurs when you ask a user for input, like their username/userid, and instead of a name/id, the user give you an SQL statement that you will unknowingly run on your database.
In this article, we will see how it works and how we can prevent ourselves from this attack.