Discussion:
Php Objects and mysql db with web frontend.
Nikhil Jain
2014-04-08 12:58:24 UTC
Permalink
Hi,

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?





----------------------------
*Regards,*

*FromNik*
​
Tony Marston
2014-04-08 15:07:43 UTC
Permalink
Post by Nikhil Jain
Hi,
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?
----------------------------
*Regards,*
*FromNik*
?
You might like to take a look at Using PHP Objects to access your Database
Tables which can be found at
http://www.tonymarston.net/php-mysql/databaseobjects.html
--
Tony Marston

http://www.tonymarston.net
http://www.radicore.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Christoph Becker
2014-04-09 21:15:07 UTC
Permalink
Post by Nikhil Jain
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...