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?
> 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(); } }