Re: Delete from cart
| From: | Gary | Date: | Fri, 16 Feb 2001 23:01:12 +0000 |
| Subject: | Re: Delete from cart | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40250@lists.php.net to get a copy of this message | ||
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 variable. its very spec on what software your using. -- Chris Lee Mediawaveonline.com em. lee@mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Gary" <deadfred@2sie4.com> wrote in message news:3A8D8B39.4020208@2sie4.com...I am writing my own system. It is using cookies to give a temp id number. When you choose something from the menu it uses the stock number to generate a description and cart page. I was thinking about using the stock number with a db query to delete the row. I am not sure about the best way to accomplish this. GaryHi 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