Well Tizag.com has some of the best beginner programming tutorials. They're not the best real world examples but they'll get you started.
The other thing I would say is even though it may take a while to get a grasp on coding secure code - most of it's quite simple. ALWAYS filter your input - from any source. And always do this on the server side - do not trust javascript since it runs on the client/visitor computer. When you filter input never try to worry about what characters to block, only worry about what characters you should let in. Use functions like preg_match or similar functions to specify rules where if the input is not between 0-9 and a-z or A-Z - strip it out silently or report an error to the user. If you're using php be sure to use mysql_real_escape_string before your database queries (all of them). That alone should prevent most if not all sql injection attacks.