Posted by Peter on 10/04/23 11:20
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.
[Back to original message]
|