Okay so I have been web developing for a little while now and I have some questions regarding PDO and SQL injection. As we all know SQL injection is a horrible vulnerability that we all want to avoid to our basic capability. I understand that SQL injection is most commonly done by using ' in a data which breaks the query, such as the infamous:
' or '1'='1
I sometimes get lazy and usually my PDO SQL queries end up like this:
SELECT * FROM users WHERE id = ?
(I'd then bind ? to the $_GET['id']
or something)
Now notice I don't use ` or ' anywhere in the query, is SQL injection still possibly after prepared statements? What exactly does prepared statements stop? Thank you!