Re: [PHP] Re: error when using $this

2003-08-21 Thread Jean-Christian IMbeault
Jonathan Villa wrote: > I am in a class as well as a constructor. > > class DBI > { > //var declarations > function DBI() > { > $retVal = true; > > $this->setDBConn(mysql_connect('localhost',$this->_dbuser,$this->_dbpwd)); > if ($this-

Re: [PHP] Re: error when using $this

2003-08-21 Thread Jonathan Villa
I am in a class as well as a constructor. class DBI { //var declarations function DBI() { $retVal = true; $this->setDBConn(mysql_connect('localhost',$this->_dbuser,$this->_dbpwd)); if ($this->getDBConn() == false)

[PHP] Re: error when using $this

2003-08-21 Thread DvDmanDT
Has with classes to do... The error claims that code isn't in a class which makes it invalid as $this is the current class... If you aren't in a class then there's no $this... however, if you are in a class, you just found a bug or a typo in your script... -- // DvDmanDT MSN: [EMAIL PROTECTED] Ma