Re: [PHP-DB] access DB via PHP classes

2002-10-08 Thread Ruth Zhai
- 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 >

Re: [PHP-DB] access DB via PHP classes

2002-10-08 Thread Wilmar Perez
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: [PHP-DB] access DB via PHP classes

2002-10-07 Thread Ruth Zhai
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. >

Re: [PHP-DB] access DB via PHP classes

2002-10-07 Thread Wilmar Perez
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

[PHP-DB] access DB via PHP classes

2002-10-07 Thread Ruth Zhai
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