Re: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Jochem Maas
Bosky, Dave wrote: Do you have a simple example of how to create a multi-dimensional array and store it in a session variable? ... you also asked for a class example, seeing as your asking for this I don't think your ready for the class example... $_SESSION['mycart'] = array(); $_SESSION['mycart'][

RE: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Richard Lynch
Bosky, Dave wrote: > Do you have a simple example of how to create a multi-dimensional array > and > store it in a session variable? E. Okay. For your penance you now must read: http://php.net/session_start http://php.net/manual/en/language.types.array.php -- Like Music? http://l-i-e.com

RE: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Bosky, Dave
:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 11:35 AM To: Bosky, Dave Cc: php-general@lists.php.net Subject: Re: [PHP] Best method to store shopping cart contents Bosky, Dave wrote: > I've written some nice shopping carts in Cold Fusion that use a session > variable to hold an array of

Re: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Richard Lynch
Bosky, Dave wrote: > I've written some nice shopping carts in Cold Fusion that use a session > variable to hold an array of structures. > > I need to convert the shopping cart to PHP but I'm unsure of how to store > the cart's contents using PHP. > > Should I create a multi-dimensional array and st

Re: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Jochem Maas
Bosky, Dave wrote: I've written some nice shopping carts in Cold Fusion that use a session variable to hold an array of structures. I need to convert the shopping cart to PHP but I'm unsure of how to store the cart's contents using PHP. Should I create a multi-dimensional array and store it a se