Jump to content
MakeWebGames

MySQL Standard vs MySQLi Enhanced


MysteriousD

Recommended Posts

MySQL is like already mentioned a deprecated API as of PHP 5.5.0 and will be removed in a future version. Why? Well, it's insecure, lacking implementations of great features and is procedural.

Where do you get insecure and procedural from? How is procedural even a reason? Mysqli is "procedural"

Link to comment
Share on other sites

Where do you get insecure and procedural from? How is procedural even a reason? Mysqli is "procedural"

Yeah, it's definitely not bulletproof. Here's a pretty good question that covers http://stackoverflow.com/questions/5741187/sql-injection-that-gets-around-mysql-real-escape-string my thoughts on the matters.

Well, there is nothing wrong that it's procedural, however it still sucks because it lacks an object-oriented interface.

Link to comment
Share on other sites

The main difference is that Mysqli has 2 big new improvements: prepared statements and built-in transactions.

 

Both of them have big flaws and gotchas, but at least they exist. The "it's more secure" thing is true, but over-hyped; people who wrote secure Mysql_ will write secure Mysqli, the people who wrote insecure Mysql_ will manage to write insecure Mysqli, you can be sure of that.

 

There's a lot of little things that I just don't like about Mysqli so I've been making a wrapper for Mysqli for my framework, I might make a post about it here sometime after I finish writing the online documentation for it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...