[PHP] Classes Question

2001-11-09 Thread Paul - Zenith Tech Inc
I'm hoping somebody has the answer to this! I have 3 pages, one a normal PHP page, and 2 which are classes. One class, is a MySQL class I have written to connect/update users, etc And the other is the manage users on the system. Is there a way I can get the "users" class to talk to the "mysql"

[PHP] Classes question.

2001-01-19 Thread James McLaughlin
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 is in. If I take the "$this->something" it will parse fine. Can you not

Re: [PHP] Classes Question

2001-11-09 Thread pierre-yves
foo(){ $this->db->sql_query("SELECT user FROM banned_users"); } } // end class hope it help, py - Original Message - From: "Paul - Zenith Tech Inc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 11:26 AM Subject: [PHP] Classes

Re: [PHP] Classes Question

2001-11-12 Thread Paul - Zenith Tech Inc
y("SELECT user FROM banned_users"); > } > } // end class > > hope it help, > py > > > - Original Message - > From: "Paul - Zenith Tech Inc" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 09, 2001 11:26 AM > Subje

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
BannedUser ($foo, &$db)" > and call it "$users->CheckBannedUsers("foo", &$db)" > > Note ampersand symbols! > > Best regards, > Andrew Kirilenko. > > > -Original Message- > > From: PaulC [mailto:[EMAIL PROTECTED]] &

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