Reply to Re: [PHP] creating a shopping cart.

Your name:

Reply:


Posted by Robert Cummings on 10/01/05 21:33

On Sat, 2005-10-01 at 11:41, adriano ghezzi wrote:
> 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

A DB approach is nice, but not necessary. Serialization of a shopping
cart array that contains the contents of the cart is sufficient. While a
DB is a natural solution, I've heard of systems that use the file system
or even email the request to a fulfillment address.

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

[Back to original 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

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