Re: access DB via PHP classes
| From: | Wilmar Perez | Date: | Tue, 08 Oct 2002 14:10:19 +0000 |
| Subject: | Re: access DB via PHP classes | ||
| References: | 1 2 3 4 5 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22273@lists.php.net to get a copy of this message | ||
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
*******************************************************