Q. Which SQL injection prevention technique is recommended in PHP?

  • (A) Escaping input manually
  • (B) Prepared statements
  • (C) String concatenation
  • (D) Input trimming
πŸ’¬ Discuss
βœ… Correct Answer: (B) Prepared statements
Explanation: Prepared statements with bound parameters are the best way to prevent SQL injection.
Explanation by: Rati Dubey
Prepared statements with bound parameters are the best way to prevent SQL injection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
64
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
92%
Success Rate