cheetahten Posted June 27, 2009 Share Posted June 27, 2009 I been reading alot of late about PHP5 and OOP... Am need to OOP, I come from a COBOL background, I do some codeing in PHP4 as a hobby Anyways.... Data access??? Should I read up on DAO? Or MySqli? Error Handling? Exceptions???? The Try, Catch reminds me of COBOL GOTO's or Continue on how I did it in PHP4..set_error_handler? Quote Link to comment https://forums.phpfreaks.com/topic/163853-php-dao-mysqli/ Share on other sites More sharing options...
trq Posted June 27, 2009 Share Posted June 27, 2009 DAO and mysqli are in no way comparable. While you could use mysqli to implement a DAO, asking should I use DAO or mysqli is like asking should I eat apples or bricks. And yes, if your using php5, exceptions and exception handling are the way to go. Quote Link to comment https://forums.phpfreaks.com/topic/163853-php-dao-mysqli/#findComment-864588 Share on other sites More sharing options...
RichardRotterdam Posted June 27, 2009 Share Posted June 27, 2009 Should I read up on DAO? Or MySqli? Yup you should read up on those it doesn't seem you have a full understanding of what they are yet. You might also find ORM(object relation mapper) of interest. Quote Link to comment https://forums.phpfreaks.com/topic/163853-php-dao-mysqli/#findComment-864591 Share on other sites More sharing options...
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.