A session array of structures is the way to go.
session.aCart[i].Bean_ID
session.aCart[i].Bean_name
session.aCart[i].Bean_description
Should look familiar to some ppl.
Steve
> -----Original Message-----
> From: Matthew Walker [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 02, 2000 15:12
> To: Cf-Talk
> Subject: shopping carts
>
>
> What kind of data structure would you recommend storing a
> shopping cart as?
>
> I have set one up as a structure Session.Cart which contains a set of
> structures identified by ProductID as the Keys, where each of these
> structures contains the basic info about each product ordered
> (name, price,
> quantity). I'm storing more than just the ProductID and Quantity
> in order to
> reduce database load. Is this a good way of doing it, or would an
> array or a
> list or whatever be better. There must be one best way I should
> think. What
> do people consider that to be??
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.