Injection

What does this code do? (Injected code hacked)
How do hackers inject code? What is an injected script? Why do hackers use SQL injection? What are injection attacks on Web applications? Can I hack w...