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 =
>
ation.
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 X289
[EMAIL PROTECTED]
- Original Message -
From: "Charles" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 22, 2002 10:25 AM
Subject: [PHP] OOP Problem
> Hi,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 22-01-02 at 15:08
* Charles said
> php give me a error,
> call to undefined function: mysql_connect()
>
> php think that mysql_connect is my private function ?
>
Have you used mysql functions in that enviornment (without a class)
befor
eveloper
www.SpryNewMedia.com
Email: [EMAIL PROTECTED]
-Original Message-
From: Charles [mailto:[EMAIL PROTECTED]]
Sent: Tuesday January 22, 2002 10:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] OOP Problem
Hi,
i have create a simple php class to learn how to oop programming, like
this:
class mysqldb
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 gi
5 matches
Mail list logo