Re: access DB via PHP classes
| From: | Ruth Zhai | Date: | Wed, 09 Oct 2002 00:36:26 +0000 |
| Subject: | Re: access DB via PHP classes | ||
| References: | 1 2 3 4 5 6 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22279@lists.php.net to get a copy of this message | ||
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: [PHP-DB] 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
>