RE: [PHP] OOP Problem

From: Date: Tue, 22 Jan 2002 14:20:51 +0000
Subject: RE: [PHP] OOP Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81545@lists.php.net to get a copy of this message
The only reason I can think of for that to happen would be if you referred to $this->mysql_connect(...); Then it would look for mysql_connect as a method of the class and wouldn't find it. Just guessing that this might be the problem. Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: matt@SpryNewMedia.com -----Original Message----- From: Charles [mailto:charles@a3a.com.br] Sent: Tuesday January 22, 2002 10:25 AM To: php-general@lists.php.net Subject: [PHP] OOP Problem Hi, i have create a simple php class to learn how to oop programming, like this: class mysqldb { var $dbconn; function OpenCon($DBHOST,$DBUSER,$DBPASS){ $this->dbconn = mysql_connect($DBHOST,$DBUSER,$DBPASS); } } this is a simple example... but when i inherit the class, php give me a error, call to undefined function: mysql_connect() php think that mysql_connect is my private function ? Charles Ps. sorry my poor english -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#81545) next »