Glue text together
Use a placeholder (?)
bob
O'Brien
x' OR '1'='1
What the database receives
Separately, as data
Result from a tiny pretend database (users: ada, bob, cy)
The pretend database only understands
=
and
OR
, which is enough to show the idea. The real code and its real output are further down.