RE: [PHP] creating a shopping cart.

2005-10-03 Thread Chris W. Parker
Jay Blanchard on Monday, October 03, 2005 5:30 AM said: > A basic flowchart could have helped you to answer your question and > broken down the processes into their componenet parts. Heck, you > don't even need fancy flowcharting software...just write down the > step

RE: [PHP] creating a shopping cart.

2005-10-03 Thread Jay Blanchard
[snip] What's the best approach to create a shopping cart.? [/snip] I see that you have received some answers already but I wanted to point out something very obviouslearn how to plan a software application. I know that I am old school, but I see far too many developers today winging it. A lo

Re: [PHP] creating a shopping cart.

2005-10-01 Thread adriano ghezzi
depends imho there are a lot of reasons to use a db approach, unless you are working on a really poor system, first is persistent in any case you'll never lost an item is the only way to make your software scalable to hundreds of users, using array you have everything in memory, you must set up you

Re: [PHP] creating a shopping cart.

2005-10-01 Thread Robert Cummings
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 ordere

Re: [PHP] creating a shopping cart.

2005-10-01 Thread Robert Cummings
On Sat, 2005-10-01 at 09:31, Emil Novak wrote: > 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 > P

Re: [PHP] creating a shopping cart.

2005-10-01 Thread adriano ghezzi
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

Re: [PHP] creating a shopping cart.

2005-10-01 Thread Emil Novak
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://