duncan2010 Posted January 16, 2010 Share Posted January 16, 2010 I'm sure this is asked a million times, so if it annoys you then just don' answer. I have searched the forums before asking this, but as a newbie to code I see the forum as a quick way to gain knowledge, rather than put all the ground work in from scratch. That said, my question is wheather it's best to learn mysql or mysqli? (in your opinion of course) What is most widely used in the industry? I know that mysqli is newest and supports OO programming, but it would seem that many people still use mysql and therefore procedural style. Any good advice is always welcomed. I don't want to spend ages learning one only to find that later on it will not be as useful. Thanks. Link to comment https://forums.phpfreaks.com/topic/188680-mysql-or-mysqli/ Share on other sites More sharing options...
JAY6390 Posted January 16, 2010 Share Posted January 16, 2010 It can't hurt to learn both, since they're very similar with the way in which they work, however you should strive to use mysqli as it's name clearly tells you it's IMPROVED so it's better than the original. Note that the original version of mysql for php was procedural code and that mysqli is object oriented (OOP) Link to comment https://forums.phpfreaks.com/topic/188680-mysql-or-mysqli/#findComment-996078 Share on other sites More sharing options...
Buddski Posted January 16, 2010 Share Posted January 16, 2010 Just a little note to add to what JAY6390 said about mysqli. mysqli is not just OOP it also has procedural versions of its functions Link to comment https://forums.phpfreaks.com/topic/188680-mysql-or-mysqli/#findComment-996079 Share on other sites More sharing options...
duncan2010 Posted January 16, 2010 Author Share Posted January 16, 2010 Thankyou guys. Very useful info. Is the general trend in industry towards mysqli then? Is Mysql being outdated or is it still widely used and just a matter or preference? I originally learnt java so am used to the OO aproach. Link to comment https://forums.phpfreaks.com/topic/188680-mysql-or-mysqli/#findComment-996092 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.