mysqli - Use the class (OO) or functions?
Posted: Wed Aug 26, 2009 4:01 pm
Hi Guys,
I'm switching to using the mysqli extension (coming from mysql) and can't quite figure out how one should decide whether to use the OO mysqli approach or the procedural mysqli approach. I've done some searching and research, but haven't been able to figure out what advantages one might have over the other. I tend to mix my scripts with OOP and procedural code, so it's not like I usually code one way or the other. I'd also like to know which approach you take.
Thanks for your advice and guidance!
Kevin
I'm switching to using the mysqli extension (coming from mysql) and can't quite figure out how one should decide whether to use the OO mysqli approach or the procedural mysqli approach. I've done some searching and research, but haven't been able to figure out what advantages one might have over the other. I tend to mix my scripts with OOP and procedural code, so it's not like I usually code one way or the other. I'd also like to know which approach you take.
Thanks for your advice and guidance!
Kevin