Which of the following is a common practice to prevent SQL injection?
- Disabling error reporting
- Parameterized queries
- Storing sensitive data in plain text
- Using weak passwords
A common practice to prevent SQL injection is to use parameterized queries, which ensure that user input is treated as data and not executable code. This helps to mitigate the risk of malicious SQL injection.
Loading...
Related Quiz
- In CodeIgniter, Helpers are not classes but a collection of ________.
- In profiling a CodeIgniter application, the section that shows the time taken by each controller and its methods is labeled as ________.
- To ensure backward compatibility in a CodeIgniter application update, unit testing should prioritize ________.
- To enhance user experience, ________ validation is performed as the user fills out the form fields.
- What is the role of the 'system' directory in the CodeIgniter framework?