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-
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)
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
3 matches
Mail list logo