Zend Certified PHP Engineer 200-550 Question # 35 Topic 4 Discussion

Zend Certified PHP Engineer 200-550 Question # 35 Topic 4 Discussion

200-550 Exam Topic 4 Question 35 Discussion:
Question #: 35
Topic #: 4

What is the preferred method for preventing SQL injection?


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.


Get Premium 200-550 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.