Re: Php Objects and mysql db with web frontend.
| From: | Christoph Becker | Date: | Wed, 09 Apr 2014 21:15:07 +0000 |
| Subject: | Re: Php Objects and mysql db with web frontend. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323174@lists.php.net to get a copy of this message | ||
Nikhil Jain wrote:
> I know how to use classes and objects in PhP, but it has always been
> difficult for me to figure out how should I use php Objects with database
> like mysql.
>
> Specially loading and saving data when there are one-one or one-many
> relationship.
>
> Can someone guide me with books/blogs where I can get the better idea in
> this regard?
IMHO you should have a look at Martin Fowler's bliki[1] and especially
his book "Patterns of Enterprise Application Architecture"[2]. You wont
find any examples in PHP, but it's nonetheless a very good introduction
on the topic.
[1] <http://martinfowler.com/tags/database.html>
[2] <http://martinfowler.com/books/eaa.html>
--
Christoph M. Becker