Re: [PHP] Accessing Objects - Object to Object Communication

2009-12-26 Thread Larry Garfield
On Saturday 26 December 2009 3:38:44 pm Allen McCabe wrote: > Here are some code snippets: > > Content.class.php: > class Page { > > private $db;// Contains reference to instance of the > Database class > private $notify;// Contains reference to instance of the

[PHP] Accessing Objects - Object to Object Communication

2009-12-26 Thread Allen McCabe
I have a Database class that I instantiate with credential information. The connect method connects and creates a resource by the name $link_id. So if I do this: $db = new Database($server, $user, $password, $database); $db->connect(); To get the resource (for use by mysql_insert_id() for example