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
  • 199
  • 1
  • 13

1 Answers1

4

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

ceejayoz
  • 176,543
  • 40
  • 303
  • 368