Re: Mysqli insert / OO Design Problem - Call to a member function bind_param() on a non-object in...

From: Date: Wed, 16 May 2007 21:48:03 +0000
Subject: Re: Mysqli insert / OO Design Problem - Call to a member function bind_param() on a non-object in...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255034@lists.php.net to get a copy of this message
Lee PHP wrote:
Hi there, I'm new to OO-PHP and have encountered a problem that I just can't figure out. I have a class called DBAccess that extends mysqli. In a nutshell, it looks like this:
<snip>
If I execute the following code: $conn = DBAccess::getInstance();
Does that give you an object? Check with: var_dump($conn); If that works, does:
$someClass = new Class();
set up the $someClass->conn variable properly? -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#255034) next »