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

2007-05-17 Thread Robin Vickery
On 16/05/07, Lee PHP [EMAIL PROTECTED] wrote: /** Insert record. */ public function insert() { $sql = INSERT INTO table ( . field_1, . field_2, . field_3) . ?, . ?, . ?);

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

2007-05-16 Thread Lee PHP
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: class DBAccess extends mysqli { private static $instance; private static $preferences; /** Create an instance

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

2007-05-16 Thread Chris
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