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

2007-07-02 Thread Richard Lynch
Somewhere in that mess there should be something to do a mysqli_select_db() to choose WHICH database to use... Where it's supposed to be in the mess of OOP layers you're wrapped around yourself, god only knows. On Fri, June 29, 2007 12:31 pm, Lee PHP wrote: > Hi, > > I have a class that extends m

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

2007-06-29 Thread Stut
Please always include the list when replying. Lee PHP wrote: Yup, that was it - thanks! Coming from a Java OO background, I find it frustrating that PHP doesn't warn me about stuff like that. Oh well, I guess I'll know next time. End the frustration, turn notices on. This reminds me of a sayin

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

2007-06-29 Thread Stut
Lee PHP wrote: public static function getInstance($url = null) { // Set the URL if one is provided. if (isset($url)) { $this->setUrl($url); } // Instantiate the Singleton if not already instantiated. if(empty(self::$INSTANCE)) {

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

2007-06-29 Thread Stut
Lee PHP wrote: 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 { pri