I have a site that makes use of various database operations, such as SELECT, INSERT, UPDATE, and DELETE. I am in the process of switching all my mysqli to PHP PDO. I am told switching to PDO should help keep my site secure against SQL Injections, so that should be covered.
Besides SQL Injections, if you would have to choose 2 other security vulnerabilities to protect against, what would those be?
If you could please provide me with some code samples for each scenario, that would be much appreciated.