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'][
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
:[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
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
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
5 matches
Mail list logo