Re: class error

From: Date: Thu, 16 Nov 2000 07:48:11 +0000
Subject: Re: class error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25648@lists.php.net to get a copy of this message
php is saying, that $cart ist not an object. $cart must be initialised with something like $cart = new Something() Martin Kurth Bemis wrote: > looksy at this.... > > Fatal error: Call to a member function on a non-object in > /www/harborfresh/retail/hand.php on line 4 > > i get that when i try to access the class....... > > heres line 4 in hand.php > > 3:if ($action == "add"){ > 4: $kurth = $cart->add_item(shopping, $product, 1); > 5: header('location: /retail/retail.php'); > 6:} > > now what did i do! > > ~kurth > Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer > > There is no sin except stupidity. -- Oscar Wilde > > kurth@usaexpress.net | http://www.usaexpress.net/kurth > PGP key available - http://www.usaexpress.net/kurth/pgp > > Fight Weak Encryption! Donate your wasted CPU cycles to Distributed.net > (http://www.distributed.net) > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#25648) next »