-4

I'm starting fresh here and reading a lot of posts on injection. This one is excellent but it's 8 years old. Is it still valid? php/pdo/mysql is changing all the time. Thanks.

Are PDO prepared statements sufficient to prevent SQL injection?

user116032
  • 321
  • 2
  • 15

1 Answers1

1

The highest-rated answers there still very much apply. In general, however, beware, of anyone who tells you that a certain method of preventing a certain security issue is a 100% cure. In this case, especially be careful with dynamic SQL. I would actually avoid using dynamic queries altogether if you're just getting started.

Kai
  • 2,529
  • 1
  • 15
  • 24