2. Use parameterized queries rather than pasting strings together.
3. There is no step 3. Seriously, it's not hard.