"Gary" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 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







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to