Does anyone have any suggestions on how to sanitize user submitted variables on the server side, so that I'm protected from SQL injection?
For example, I want to do this but it's clearly not safe:
Code: Select all
var sql = "select * from users where userName='" + nick + "' and password='" + pass + "'";Thoughts?
-mark