How can I avoid SQL injection attacks?
问题 Yesterday I was speaking with a developer, and he mentioned something about restricting the insertions on database field, like, strings such as -- (minus minus). At the same type, what I know is that is a good approach to escape HTML chars like < , > etc. Not -- . Is this true? Do I have to worry about -- , ++ ? Is it more like a myth or old stuff? Update Thanks a lot for all the answers, it's easy to understand like that since I'm kind of new to all of this. Well, to be more specific in this