PDO vs. MySQLi |
Hi to all developers...
I use MySQLi for dbdriver (as default config) and use codeigniter query builders. As you know, there are some other drivers for database. My question is about PDO vs. MySQLi. Is using pdo for dbdriver is better and more secure than using mysqli (with using query builders)? or there are no difference?
I used PDO and implement it in some of my php app (app that develop without using any framework like codeigniter or...) to create an abstract layer to access database for secure connection and secure use... doing some binding before insert or... So is it better using pdo for dbdriver in codeigniter or...?
I use codeigniter v3.
thanks for attention...
PDO's only advantage is its easy to use interface.
In CI, you don't use PDO directly, so you gain nothing from that.
|
Welcome Guest, Not a member yet? Register Sign In |