Re: [PHP] OOP Problem

2002-01-22 Thread Anas Mughal
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 = >

Re: [PHP] OOP Problem

2002-01-22 Thread Sam Masiello
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.

Re: [PHP] OOP Problem

2002-01-22 Thread Nick Wilson
-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

RE: [PHP] OOP Problem

2002-01-22 Thread Matt Friedman
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.co