php-general | 2001072

[PHP] Re: "Call to a member function on a non-object" error! From: Henrik Hansen (hh <email protected>)
Date: 07/30/01

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>