Re: OOP Problem
| From: | Sam Masiello | Date: | Tue, 22 Jan 2002 14:56:39 +0000 |
| Subject: | Re: OOP Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81553@lists.php.net to get a copy of this message | ||
Hi there!
It sounds like you do not have mysql support compiled into PHP. You didn't
say if you were using PHP on Windows or Linux so you might want to read the
documentation for the respective version that you have downloaded to find
out how to compile MySQL support into your PHP installation.
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 X289
smasiello@synacor.com
----- Original Message -----
From: "Charles" <charles@a3a.com.br>
To: <php-general@lists.php.net>
Sent: Tuesday, January 22, 2002 10:25 AM
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
>