Re: [PHP] Classes Question

2001-11-12 Thread Paul - Zenith Tech Inc
Thanks Andrew... I basically tried that, but without the ampersand symbols. I'll give that a try Many thanks, Paul "Andrew Kirilenko" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hello! > > Try to declare CheckBannedUser as "function CheckBannedUser ($foo, &$db)" > and call i

Re: [PHP] Classes Question

2001-11-12 Thread Paul - Zenith Tech Inc
I did have a look in the manual, but I got lost half way through! I always think it's a good idea to describe the problem well :) Thanks, Paul "Andreas Landmark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Sun, Nov 11, 2001 at 06:09:40PM -, PaulC wrote: > > I'm hopin

Re: [PHP] Classes Question

2001-11-12 Thread Paul - Zenith Tech Inc
Thanks for the help Pierre Paul "Pierre-Yves" <[EMAIL PROTECTED]> wrote in message 00c001c16940$47db1c90$0100a8c0@py">news:00c001c16940$47db1c90$0100a8c0@py... > Hello, > > what I would do is build the instance of your mysql class in the constructor > of the user class > > class User{ > var $d

Re: [PHP] Classes Question

2001-11-09 Thread pierre-yves
Hello, what I would do is build the instance of your mysql class in the constructor of the user class class User{ var $db; // constructor function User(){ $this->db = new Mysql(True); } // function that show how to use the Mysql class in the User class function foo(){ $this

Re: [PHP] Classes question.

2001-01-19 Thread Matt McClanahan
On Fri, 19 Jan 2001, James McLaughlin wrote: > I get an error when doing this > > class Something > { > var $something; > > function Something($this->something) > { > More somethings > } > > } > > The error tells me that I need a ")" in the line the function call i