You are here: Re: [PHP] class and global « PHP « IT news, forums, messages
Re: [PHP] class and global

Posted by Mister Jack on 03/19/05 22:45

there is no database connection involved here. if I displace the
$freedb =& new freedbaxs();
inside the function it's works.

I should give a try with a dummy object. (but the constructor, only
initialize empty array)



On Sat, 19 Mar 2005 21:17:02 +0200, BAO RuiXian <ruixian.bao@pp.inet.fi> wrote:
>
>
> 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
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация