Q. Which of the following is used to prevent SQL Injection in PHP?

  • (A) mysql_query()
  • (B) Prepared statements
  • (C) echo()
  • (D) print_r()
πŸ’¬ Discuss
βœ… Correct Answer: (B) Prepared statements
Explanation: Prepared statements help protect against SQL injection.
Explanation by: Admin
Prepared statements help protect against SQL injection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
36
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
93%
Success Rate