> -----Original Message----- > From: Paul [mailto:[EMAIL PROTECTED]] > Sent: 18 November 2002 11:49 > To: 'Tim Ward'; [EMAIL PROTECTED] > Subject: RE: [PHP] RE: Problem with Class - incomplete object error > > > Yes, I have included class definition on the top of the page.
And are you 100% sure it's before your session_start()? > > The reason that was using $cart is the fact that I was calling > methods/functions of the object such as $cart->AddItem()..and > I was not > sure whether $_Session['cart']->AddItem would be a correct way or not Well, no, but $_SESSION['cart']->AddItem would...;)! Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php