[PHP] Re: Problem extending mysqli - "No database connected"

2007-06-29 Thread Lee PHP
Actually, the post by hans at lintoo dot dk (22-Mar-2005 11:33) @ http://theserverpages.com/php/manual/en/ref.mysqli.php show why. Weird. On 6/29/07, Lee PHP <[EMAIL PROTECTED]> wrote: Hi, I have a class that extends msyqli that AFAIK can connect to the database, but gives me an error

[PHP] Problem extending mysqli - "No database connected"

2007-06-29 Thread Lee PHP
Hi, I have a class that extends msyqli that AFAIK can connect to the database, but gives me an error when I try and query it. Here's my class: -- BEGIN DATABASE CLASS -- require_once('Configuration.php'); require_once('RSFSException.php'); class Database extends mysqli { privat

[PHP] OO Problem / Using Singleton Pattern / Extending mysqli

2007-06-08 Thread Lee PHP
Hi guys, For the life of me I can't figure this out. I have two classes as follows: 1. Config.php (based on the Singleton pattern; gets/sets properties). 2. Database.php (also based on the Singleton pattern; extends mysqli). -- BEGIN CLASS CONFIG -- $line) { if

[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