Introduction
PDO helps you talk to many databases in the same way. It keeps your code safe and easy to change.
You want to connect to different types of databases without changing much code.
You need to protect your app from bad data that can cause security problems.
You want to write clean and simple database code.
You plan to switch databases later without rewriting everything.
You want to handle errors in a clear and consistent way.