0

Im using mysqli_real_escape_string() for all database connections in my website. is this enough to prevent SQL injection ? is there any other precautions ?

lasan
  • 201
  • 1
  • 13

1 Answers1

4

mysqli_real_escape_string does absolutely nothing to combat XSS attacks. It combats SQL injection.

ceejayoz
  • 171,474
  • 40
  • 284
  • 355