Use an array because they are dynamic with cold fusion.
For example if you set row 1 through ten with information
and then delete row 8, row 9 becomes row 8 and row 10 becomes row 9
----- Original Message -----
From: "Matthew Walker" <[EMAIL PROTECTED]>
To: "Cf-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, August 02, 2000 7:12 AM
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.