Re: moidperl, OOP & DBI

2000-11-21 Thread Sean C. Brady
Hi Ilya. Even though this isn't a mod_perl issue you should be able to open your database connection within your constructor. You also could maybe call an internal method from within your constructor that opens the db connection and checks for the existence of 'id'. - Sean On Tue, 21 Nov

Re: moidperl, OOP & DBI

2000-11-21 Thread Matt Sergeant
On Tue, 21 Nov 2000, Ilya Soldatkin wrote: > I am creating an object that make queries to database. But how shall I > explain to him what database handler he shall use? > Under mod_perl it is too dangerous to make $dbh global variable. > Well, I can create data field in this object that will sto

moidperl, OOP & DBI

2000-11-21 Thread Ilya Soldatkin
I am creating an object that make queries to database. But how shall I explain to him what database handler he shall use? Under mod_perl it is too dangerous to make $dbh global variable. Well, I can create data field in this object that will store current $dbh, but it seems too strange too me to