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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux