Interview Question

How to prevent SQL injection?

Short, clear answer + key notes. Use the sidebar to browse more questions.

💡 Concept ✅ Quick Revision 💻 PHP

Answer

Use prepared statements with bound parameters (PDO/mysqli). Never concatenate user input into SQL.