Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
02-01-2013, 12:57 PM #1
- Join Date
- May 2006
- Thanked 4 Times in 4 Posts
Do I NEED to move over to MySQLi ?
Since all the MySQL functions are now depreciated.
The Manual states:
"This extension is deprecated as of PHP 5.5.0, and is not recommended for writing new code as it will be removed in the future."
So does that mean I NEED to change all my scripts to use MySQLi ?
It seems that most of the examples in the Manual for MySQLi
are OOP rather than procedural style.
And therefore - should I learn how to program OOP ?
Your comments and experience invited
02-01-2013, 04:10 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,660 Times in 2,629 Posts
Eventually you will need to move. Deprecated indicates they plan in the future to remove it.
Object oriented is not required. The entire mysqli is both procedural and OO, and each page should have an example usage of both procedural and OO usage. Personally I'd say that the OO code is easier to work with.
That doesn't mean you shouldn't learn OOP, rather you don't need to learn it to use mysqli.
header('HTTP/1.1 420 Enhance Your Calm');