Re: [PHP] Class variables and scope

2002-05-31 Thread Michael Davey
I am doing that - sorry, should have given you a bit more code... conn = mysql_connect ($host, $user, $pwd) or die ("Unable to connect to database"); $sel = mysql_select_db ($db, $this->conn); if (!$sel) die ("Unable to select database"); return true; }

Re: [PHP] Class variables and scope

2002-05-31 Thread Stuart Dallas
On Friday, May 31, 2002 at 4:11:42 PM, you wrote: > When I try to work with the first instance of my class, I get an error which > I finally tracked down to it trying to run it's SQL queries against the > database defined in $c2. Now, I was under the impression that class > variables were private