PrepAway - Latest Free Exam Questions & Answers

What is the preferred method for preventing SQL injection?

What is the preferred method for preventing SQL injection?

PrepAway - Latest Free Exam Questions & Answers

A.
Always using prepared statements for all SQL queries.

B.
Always using the available database-specific escaping functionality on all variables prior
to building the SQL query.

C.
Using addslashes() to escape variables to be used in a query.

D.
Using htmlspecialchars() and the available database-specific escaping functionality to
escape variables to be used in a query.


Leave a Reply

Your email address will not be published. Required fields are marked *