SQL InjectionPremium
SQL injection happens when user input is glued into a query as text. An attacker can type SQL instead of a name and read or destroy data. The fix is to use parameterised queries (prepared statements): the query and the values are sent separately, so input is never treated as code.
This is a Premium lesson
All the basic lessons are free. Advanced and in-depth lessons, with every example, exercise and quiz, are included with a Premium subscription.
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.