CodeIgniter Forums
CI3.0 PDO or Mysqli ready? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: CI3.0 PDO or Mysqli ready? (/showthread.php?tid=62509)



CI3.0 PDO or Mysqli ready? - solidcodes - 07-22-2015

Hi guys,

I want to know if CI3 is PDO or MySQLi ready?
Which one of this is configured already?
Or should I configure them manually myself?

Thanks in advance.


RE: CI3.0 PDO or Mysqli ready? - solidcodes - 07-22-2015

Okay I reviewed the database.php
and it was configured in MySQLi
so why MySQLi not PDO?
Can someone explain.

Thanks in advance.


RE: CI3.0 PDO or Mysqli ready? - ranjithsiji - 07-23-2015

I think it is Mysqli OK. But dont know about PDO. why MySQLi not PDO? No IDEA


RE: CI3.0 PDO or Mysqli ready? - Narf - 07-23-2015

Why PDO and not MySQLi?


RE: CI3.0 PDO or Mysqli ready? - solidcodes - 07-23-2015

Isn't it PDO is much better than mySQLi?
Which is better?
That's why I'm asking?


RE: CI3.0 PDO or Mysqli ready? - solidcodes - 07-23-2015

Okay reading now...
http://code.tutsplus.com/tutorials/pdo-vs-mysqli-which-should-you-use--net-24059


RE: CI3.0 PDO or Mysqli ready? - solidcodes - 07-23-2015

Oh, so PDO won that article.
Meaning PDO is much better than MySQLi.
So when will PDO be implmented instead of MySQLi?
Hope maybe in next release version?

Narf? your thought?


RE: CI3.0 PDO or Mysqli ready? - Narf - 07-23-2015

I can't believe I'm having this conversation ...

First of all, PDO isn't "much better" than MySQLi, it just has a nicer API if you use it directly and that's irrelevant in CodeIgniter's case because it has an abstraction on top of it.

Second, we don't implement one driver instead of another, we implement all of them and you just pick whichever one you want to use.

Third and final, don't believe everything you hear and everything you read on the internet.


RE: CI3.0 PDO or Mysqli ready? - solidcodes - 07-23-2015

@Narf

I believe you, cuz you are one of the CI contributor.
Thanks for sharing your thoughts.