Re: Classes Question
| From: | Andreas Landmark | Date: | Sun, 11 Nov 2001 18:15:33 +0000 |
| Subject: | Re: Classes Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74183@lists.php.net to get a copy of this message | ||
On Sun, Nov 11, 2001 at 06:09:40PM -0000, PaulC wrote:
> I'm hoping somebody has the answer to this!
>
> I have 3 pages, one a normal PHP page, and 2 which are classes.
>
> One class, is a MySQL class I have written to connect/update users, etc
> And the other is the manage users on the system.
>
> Is there a way I can get the "users" class to talk to the "mysql" class?
>
Inheritance, let the users class inherit the functions of the mysql
class, that's the nicest and probably the best way to do it.
Read up on OO in the manual to find out how to do inheritance in PHP.
<removed a pretty good description of the problem>
--
Andreas D Landmark / noXtension
Every solution breeds new problems.