Thank you again, Wilmar. As a newbie for OOP, I will keep my option open when I design this application. I have not come to a conclusion which way is better than another (I wish I had time to test all possibilities). I appreciate your comments, and will keep them in mind. Regards Ruth ----- Original Message ----- From: "Wilmar Perez" <wilmar.perez@caribe.udea.edu.co> To: <php-db@lists.php.net> Sent: Wednesday, October 09, 2002 12:10 AM Subject: Re: access DB via PHP classes > Well, what about building a basic class without any database conection in the > constructor and then have a inherited class with the needed database > conection? and then use whichever you need to generate the pages. > > You can even just have the basic class and execute some code in the > constructor that connects or not to the database depending on a parameter you > pass to it. > > As I told you before, I'm very newbie to OOP as well, but think that may work > well. > > Hope it helps > > Bye > > ******************************************************* > Wilmar Pérez > Network Administrator > Library System > Tel: ++57(4)2105145 > University of Antioquia > Medellín - Colombia > 2002 > ******************************************************* > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php