Re: class and global

From: Date: Sat, 19 Mar 2005 19:17:02 +0000
Subject: Re: class and global
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-211113@lists.php.net to get a copy of this message
Evert - Rooftop Solutions wrote:
pooly wrote:
I'm trying to use a global object (declared at a upper level), but all I got is : Call to a member function on a non-object in /home/pooly/public_html/templeet/modules/freedb.php on line 16 Hmm, perhaps your problem is the failed connection to your database. Can you verify this?
Best Bao
part of the code is : $freedb =& new freedbaxs(); Function return_freedb_search($array) {
    global $freedb;
    [snip]
        $freedb->freedb_search($txt);
I don't see an error in this code, perhaps you should give us a bit more information. grt, Evert


« previous php.general (#211113) next »