phproad / phpr-framework

[PHPR Framework] PHPRoad system files
http://phproad.com
MIT License
12 stars 2 forks source link

mysqli or PDO over mysql functions. #13

Closed Garbee closed 9 years ago

Garbee commented 11 years ago

The db connection and any other functions talking to the DB should be made to use the mysqli or PDO extensions since the built in mysql functions of php are depreciated as of 5.5 and will be removed in future versions.

daftspunk commented 11 years ago

Agree. I think in the short term we use the equivalent which is mysqli.

highruned commented 11 years ago

mysqli for the long term :+1: Support for PDO would be a nice bonus.

Garbee commented 11 years ago

What would PDO support offer that MySQLi wouldn't? I am not seeing anything really "must have" in the matrix comparison.

highruned commented 11 years ago

About 10 other types of databases. SQLite and Postgres most importantly. http://o7.no/12jkpOD

Garbee commented 11 years ago

Ah, extra DB support. So yea, long-term worth investing some time into.

daftspunk commented 11 years ago

+1 MySQLi

Garbee commented 11 years ago

Yea, thinking this over PDO is nice but mysqli is all we really need. We should keep things as simple as possible for both maintenance, documentation, and support. Going PDO allows many ways to do things which the docs most likely won't end up covering too well.

We should go mysqli and stick to it in my opinion.