Re: class and global

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


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


-- Rooftop Solutions - Web Applications on Demand tel. (+31)628962319 fax. (+31)842242474 evert@xxxxxxxxxxxxxxxxxxx http://www.rooftopsolutions.nl

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux