OOP Problem
| From: | Charles | Date: | Tue, 22 Jan 2002 15:25:07 +0000 |
| Subject: | OOP Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-81544@lists.php.net to get a copy of this message | ||
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