Re: include/require not allowed in classes?

From: Date: Fri, 14 Nov 2003 14:10:07 +0000
Subject: Re: include/require not allowed in classes?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-169636@lists.php.net to get a copy of this message
Hey guys, Thanks for replying. This is the solution that actually works. class ads_DB extends DB_Sql { var $Host = ""; var $Database = ""; var $User = ""; var $Password = ""; /* public: constructor */ function ads_DB($query = "") { global $MR_Host,$MR_Database,$MR_User,$MR_Password; $this->Host = $MR_Host; $this->Database = $MR_Database; $this->User = $MR_User; $this->Password = $MR_Password; $this->DB_Sql($query); Cheers, -Ryan

« previous php.general (#169636) next »