This question already has an answer here:
- How to prevent SQL injection in PHP? 26 answers
I'm looking for the alternative of mysql_real_escape_string()
for SQL Server. Is addslashes()
my best option or there is another alternative function that can be used?
Edit: Alternative for mysql_error()
would also be useful.