- Original Message -
From: "Wilmar Perez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
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
re if it is efficient.
Thanks again.
Ruth
- Original Message -
From: "Wilmar Perez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 11:53 AM
Subject: Re: [PHP-DB] access DB via PHP classes
> Well, I'll tell you what I do.
>
Well, I'll tell you what I do.
I'm not a OOP expert so if someone feel like I'm doing it wrong I'll welcome
any comment about .
I've got a main class which I use to generate every page in my website (some
are actually generated by inherited classes but that's the main idea). As I
need a dat
Hi All,
Although I am not so new to PHP (not expert either), this is the first time
for me to use PHP class.
I am starting a project, and plan to use partially OOP and partially
traditional programming. I use PHP/MySQL. I have one class, DB_Do, which
does every thing to do with database, and se