Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
from my gen_XML class. > >Do I include the database class in the gen_XML constructor? Do I set a > >gen_XML variable as a database object (i.e. $this->mydb)? > > > >I hope my question makes some sense... > > > >Your help is appreciated... > > >

Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
gt; >functions... > > > >For instance... > > > >I'm trying to connect to a Database (database class) from my gen_XML class. > >Do I include the database class in the gen_XML constructor? Do I set a > >gen_XML variable as a database object (i.e. $this->mydb)?

Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
e: > $this->mydb(); This way you can always reuse the method from other code. > > hth, > Steve. > > -Original Message- > From: Mark Armendariz [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 14, 2002 2:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP]

[PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
variable as a database object (i.e. $this->mydb)? I hope my question makes some sense... Your help is appreciated... Mark Armendariz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php