php-general | 2001072
Date: 07/30/01
- Next message: Henrik Hansen: "[PHP] Re: Text Database class"
- Previous message: Greg Fyans: "[PHP] "Call to a member function on a non-object" error!"
- In reply to: Greg Fyans: "[PHP] "Call to a member function on a non-object" error!"
- Next in thread: Richard Lynch: "[PHP] Re: "Call to a member function on a non-object" error!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
greg <email protected> (Greg Fyans) wrote:
> Fatal error: Call to a member function on a non-object in /home/cmradmin/public_html/thus/basket.php on line 304
> Does anyone know what the flaming heck that means? I'm trying to fix this little problem which has only appeared since my webserver upgraded to PHP4.
> Line 304 contains this:
>
>$MyCart->Display($Orderno);
>
have you initialized you object before using it?
like:
$MyCart = new MyCart;
-- Henrik Hansen-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Henrik Hansen: "[PHP] Re: Text Database class"
- Previous message: Greg Fyans: "[PHP] "Call to a member function on a non-object" error!"
- In reply to: Greg Fyans: "[PHP] "Call to a member function on a non-object" error!"
- Next in thread: Richard Lynch: "[PHP] Re: "Call to a member function on a non-object" error!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

