Commit

d6bb888

How is PDO better than mysqli for a dev that sticks to just MySQL?

commit d6bb888

MySQLi is exclusive to MySQL, supports procedural and object-oriented programming, uses only positional parameters (?), and by default does not include error handling. PDO offers support for multiple databases. It is 100% object-oriented. It supports both positional (?) and…
Contrary opinion: it isn't, unless you're using simple tables of simple data. Then absolutely use PDO. But once you extend into geographic queries or JSON style structured data queries, you are locking into a flavor of SQL anyway, and are tying your code to a database. If that…
Show thread