PHP/OOP question.. Mike K?

Writing my first class here :wink:

I always use the ADODB class (php.weblogs.com) for my database
connections. Now I want to write a login class that will use the DB
connecton class. Do I use the DB class just like I would for a normal PHP
page? or do I write a login class that extends ADODB?


John R. Marshall - Web Developer

JRM Studios - http://www.jrmstudios.com The Hotrodding Network -
http://www.hotrodding.net

On Sunday 09 September 2001 06:21 pm John R. Marshall wrote:
>

grrrrr I need to get my time set right :frowning:

John R. Marshall - Web Developer

JRM Studios - http://www.jrmstudios.com The Hotrodding Network -
http://www.hotrodding.net

> Writing my first class here
>
> I always use the ADODB class (php.weblogs.com) for my database
connections.
> Now I want to write a login class that will use the DB connecton
> class. Do I use the DB class just like I would for a normal PHP page?
> or do I write
a
> login class that extends ADODB?

You just write your class to use the ADODB class. Something like this:

class MyLoginClass { var $db;

function MyLoginClass() { $this->db=new ADODB(); } }

Jon Caruana e-mail<jcaruana@home.com> Jabber<jon.c@jabber.com>
ICQ<117792886

On Monday 10 September 2001 07:02 am Jon Caruana wrote:

> You just write your class to use the ADODB class. Something like this:

Thank you :slight_smile:

That’s what I thought… well until I started thinking, then I had
no idea :wink:


John R. Marshall - Web Developer

JRM Studios - http://www.jrmstudios.com The Hotrodding Network -
http://www.hotrodding.net