Re: access DB via PHP classes
| From: | Wilmar Perez | Date: | Tue, 08 Oct 2002 01:53:58 +0000 |
| Subject: | Re: access DB via PHP classes | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22261@lists.php.net to get a copy of this message | ||
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 database conection for every page I write the connection threat in the
main class constructor using mysql_pconnect which handles a persistent
connection.
So far it is workin alright for me. As I said before any comments will be
welcome.
Hope it helps
*******************************************************
Wilmar Pérez
Network Administrator
Library System
Tel: ++57(4)2105145
University of Antioquia
Medellín - Colombia
2002
*******************************************************