Skip to content
WJunction - Webmaster Forum

MySQL or MySQLi

Which one?

  • MySQL

    Votes: 23 79.3%
  • MySQLi

    Votes: 6 20.7%

  • Total voters
    29
Status
Not open for further replies.

15 comments

MySQLi is good tbf, personally i dont use it because i tend to built my database abstraction layers myself around MySQL but for simple applications i would go with mysqli

but for larger applications where you have query caching etc i think overall it much easier to go with the stranded version

Why improve something that dont need improving!
 
MySQL Lib is old, it shouldn't be chosen over MySQLi in any circumstances really.

MySQL Lib = old & lacks new functionality
MySQLi = new & restricted to MySQL
PDO = new & works on almost any DB

So you should generally use PDO over anything for portability.

Though half of you probably don't even know PDO exists.

I never use the mysql or mysqli libraries in my code now, it'd be an illogical decision to do so when you can have complete portability with PDO. You can code your script to use PDO so if you ever switch DB, you only change the connection, not the queries.
 
Status
Not open for further replies.

About the author

E
Active Member · Joined
655
Messages
114
Reactions
43
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom