Posted by Stefan Rybacki on 11/21/68 11:20
Peter wrote:
> Hi All
>
> I have only just started using inheritance etc and am lost a bit.
>
> I am using the DB pear package but I am writing a class that will hopefully
> use the pear package.
>
> My class uses extends DB after the name of it.
>
> When I call the connect function that is within the DB class it works with
> no problem but when I try and use the query function I get the function does
> not exist error message. Having looked in the DB pear package files I have
> found that the connect function is within the main DB class in DB.php but
> the query function is in the common.php file.
>
> How do I go about it so that my class can use every function within the DB
> class.
>
>
To get further help you should present some code you are using. And I
don't mean the code of the pear class. I mean just the code you use to
use the pear class.
Regards
Stefan
Navigation:
[Reply to this message]
|