You are here: Re: [PHP] creating a shopping cart. « PHP « IT news, forums, messages
Re: [PHP] creating a shopping cart.

Posted by adriano ghezzi on 10/01/05 18:41

you need a db based approach, just setup a couple of tables in mysql

items table
one record per item

current cart table
one record per each item added to cart with unique session id

order table
one record per each item ordered with unique order id

you'll transfer records here from current cart when user checkout


hope help

adriano











2005/10/1, Emil Novak <emilnovak@gmail.com>:
> Hi!
>
> The best way is already presented in PHP manual:
> http://www.php.net/oop . In this example you create an object, which
> you can - naturaly pass over Session, etc.
>
> If you'll use OOP (Object-Oriented Programming), it is preffered in
> PHP5 to use OOP5 (OOP for PHP5). You can find details on
> http://www.php.net/oop5 .
>
> Emil NOVAK, Slovenia, EU
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация