Re: [PHP] Delete from cart

2001-02-17 Thread Joe Njeru
"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 s

Re: [PHP] Delete from cart

2001-02-16 Thread Gary
Thanks Chris, It is a little late in the design to use your class, but it has given me an idea on how to delete from my code. Thanks Gary Chris Lee wrote: > here is a very simple cart in sessions. you have stockno and quan, it can be > easily modified to handle various other variables. > >

Re: [PHP] Delete from cart

2001-02-16 Thread Chris Lee
here is a very simple cart in sessions. you have stockno and quan, it can be easily modified to handle various other variables. cart_product_id[$product_id] = $product_id; $this->cart_product_quan[$product_id] = $product_quan; } function add_single($var_name) { if ( !isset($GLOBALS[

Re: [PHP] Delete from cart

2001-02-16 Thread Gary
Chris Lee wrote: > are you using a spec cart system? or did you write your own? its hard to > give an accurate answer without knowing. Ive wrote my own simple cart, using > sessions, to delete an item I just unset the variable. > > unset($stockno['1234']); > > where $stockno is an session array

Re: [PHP] Delete from cart

2001-02-16 Thread Chris Lee
are you using a spec cart system? or did you write your own? its hard to give an accurate answer without knowing. Ive wrote my own simple cart, using sessions, to delete an item I just unset the variable. unset($stockno['1234']); where $stockno is an session array variable. its very spec on what

[PHP] Delete from cart

2001-02-16 Thread Gary
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/) T