Re: Delete from cart

From: Date: Sun, 18 Feb 2001 02:13:18 +0000
Subject: Re: Delete from cart
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40388@lists.php.net to get a copy of this message
"Gary" <deadfred@2sie4.com> wrote in message news:3A8D8B39.4020208@2sie4.com... > Hi All, > It is Friday afternoon here and I don't want to have to reinvent the > wheel. What would be the easiest way to delete an item from a shopping > cart? I know what is required for Mysql but I am stumped on how to > implement it. > > TIA > Gary > > > -- > 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 > Hi, Are you using session variables to store your client ID and data or cookies? In the case of cookies type the following to destroy them : <? setcookie ("User_ID", "", time()); ?> or if you used the session id to add items to a general shopping cart <? $sess = session_id(); $DelCart = mysql_query("delete from Cart where sess_id = '$sess'"); ?> Hope I was helpful Joe Njeru, Nairobi, Kenya

« previous php.general (#40388) next »