National_Instruments
200-500 · Question #225
Which of the following functions will you use as a countermeasure against a SQL injection attack?
The correct answer is D. mysql_escape_string(). See the full explanation below for the reasoning.
Question
Which of the following functions will you use as a countermeasure against a SQL injection attack?
Options
- Aescapeshellcmd()
- Bmysql_fetch_array()
- Cescapeshellarg()
- Dmysql_escape_string()
How the community answered
(55 responses)- A5% (3)
- B16% (9)
- C7% (4)
- D71% (39)
Community Discussion
No community discussion yet for this question.