[PHP] general OO php question

2003-10-06 Thread Kirk Babb
If I have a class called Registration, should I code in the mysql_connect inside each function inside the class that needs it, or should I make a function called dbConnect? If so, how can I correctly call dbConnect inside the other functions of the class? would it be something like this? Or am

RE: [PHP] general OO php question

2003-10-06 Thread Chris W. Parker
Kirk Babb mailto:[EMAIL PROTECTED] on Monday, October 06, 2003 4:57 PM said: If I have a class called Registration, should I code in the mysql_connect inside each function inside the class that needs it, or should I make a function called dbConnect? What you should do is define a db class

Re: [PHP] general OO php question

2003-10-06 Thread Becoming Digital
]; [EMAIL PROTECTED] Sent: Monday, 06 October, 2003 20:26 Subject: RE: [PHP] general OO php question Kirk Babb mailto:[EMAIL PROTECTED] on Monday, October 06, 2003 4:57 PM said: If I have a class called Registration, should I code in the mysql_connect inside each function inside the class