SQL injection is where someone inserts something malicious into one of your SQL queries.
Suppose you have an SQL query:
select * from people where name = '<name>' and password = '<password>'
Now suppose that <name>and <password>are replaced by someone on your web page. If someone typed this as their password ...
' or '' = '
... then the resulting query will look like this:
select * from people where name = 'someone' and password = '' or '' = ''
... which was clearly not your intention. You can read about it here .