MysteriousD Posted January 6, 2014 Posted January 6, 2014 I've wondered this for awhile now, which MySQL driver is more recommended to use? MySQL Standard or MySQLi Enhanced and what are the differences between the two.. :confused: A noob friendly explanation is greatly appreciated. Quote
Seker Posted January 6, 2014 Posted January 6, 2014 The noobiest explanation ever: 1) The "i" stands for "improved." 2) Deprecation on MySQL has already started. 3) Use MySQLi Quote
Guest Posted January 6, 2014 Posted January 6, 2014 The only real option is MySQLi, MySQL is being depreciated, sure it will be a while before they get rid of it however, "build for the future" Quote
john. Posted January 6, 2014 Posted January 6, 2014 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. Quote
Guest Posted January 6, 2014 Posted January 6, 2014 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" Quote
KyleMassacre Posted January 6, 2014 Posted January 6, 2014 mysqli_query($c, "update some_table set some_column = {$_POST['text']}"); You mean secure like that? Quote
john. Posted January 7, 2014 Posted January 7, 2014 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. Quote
Barrikor Posted January 7, 2014 Posted January 7, 2014 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.