I have read the following post, and have some questions: How can I prevent SQL injection in PHP?
I see you can choose between PDO and MySQLi. Is there any difference, and how do I choose between them?
In the example code they use :name
for PDO queries and ?
for MySQLi. What shall I replace those with? Just a PHP variable?
Finally, how do I prepare to begin using PDO on my website? Is there any thing I need to install or add, or can I just begin, and use the same code as provided in the examples?
Thank you