You are here: Re: Problem making a class extending another « PHP Language « IT news, forums, messages
Re: Problem making a class extending another

Posted by Stefan Rybacki on 10/31/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация