Re: Looking for a good working PDO and/or mysqli database class to get started with OOP
| From: | tamouse mailing lists | Date: | Fri, 31 May 2013 02:30:32 +0000 |
| Subject: | Re: Looking for a good working PDO and/or mysqli database class to get started with OOP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321286@lists.php.net to get a copy of this message | ||
On Thu, May 30, 2013 at 8:45 PM, Stephen <stephen-d@rogers.com> wrote:
> On 13-05-30 09:36 PM, dealTek wrote:
>>
>> Hi all, Thanks for your help...
>>
>> I'm looking for a very good, pre made, working PDO and/or mysqli database
>> class (in a wrapper) - to get started with, that has all the basic needs
>> like UPDATE - INSERT - DELETE - QUERY etc. That would be very helpful. I'm
>> also trying to learn OOP, and creating my own class to start out is over my
>> head, so one that is recommended here would be a good start.
>>
> Hmmm..... PDO **IS** an OOP implementation. Why would you want to
> encapsulate it?
>
> Accessing a database requires SQL with arguments dependant on YOUR database
> schema.
>
> You have to do that work; there is no way around it.
Sounds like the OP is asking for a pre-built CRUD interface that
adapts to his tables and their relationships. It's a fair question,
just one I don't have an answer to. There must be some kind of ORM for
PHP?