Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

[email protected] (tamouse mailing lists)
Newsgroups php.general
Message-ID <CAHUC_t9XNZdz21uy_7qc8YX+SJzN4FhjpRyJCar7pAGuGmASfA@mail.gmail.com>
On Thu, May 30, 2013 at 8:45 PM, Stephen <[email protected]> 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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.