send us the code that inherits your mysqldb class...

--- Charles <[EMAIL PROTECTED]> wrote:
> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


=====
Anas Mughal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Tel: 973-249-6665

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to