[phplib] Objects & non-objects From: Mike Gifford (mike <email protected>)
Date: 07/10/01

Hello Again,

Sorry for not mentioning this in my previous message (I knew that there was
something...)

I've been mucking about with Story.class from phpSlash. I created a
Bibliography.class & modified the index.php3, config.php3, functions.inc (and
likely a few other files).

It's mirroring the phpSlash set up, however I wanted to start only with the
index.php3 file and to use as few files as I can to get that running.

I'm running into a bug though I can't seem to figure out. On this page:

        http://www.openconcept.on.ca/WLP/biblio/index.php3

I get the following error:

Warning: $db is not an object in
/home/mike/openconcept/WLP/biblio/Bibliography.class on line 274

Fatal error: Member function used on a non-object in
/home/mike/openconcept/WLP/biblio/Bibliography.class on line 274

Line 274 is:
         $this->db->query($q1);

I've modified this class/function. However, I don't know why I'm getting this
error. Or infact what it really means.

In class Bib_base (modified from Story_base), db is defined here:
        var $db;

I can send the whole code, if that would help (rather than just clogg up folk's
email)

Mike

-- 
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
It is a miracle that curiosity survives formal education. - A Einstein

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>