Reply to Problem making a class extending another

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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