Bobby Tables: A guide to preventing SQL injection

http://bobby-tables.com/php