Jump to content

Mysql or Mysqli ??


duncan2010

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.