This is the first time I've used the <CFLOOP Query="Session.Cart">
line before, too...I haven't set up any shopping carts before...
This came straight out of Forta's CF 4.0 book on the QuickStore application.
I guess the line <CFSET Session.Cart = QueryNew("PhotoFileName, Quantity,
Size, Amount")>
sets up a "virtual" table, for insertion, addition, and deletion, and like
queries, can be cflooped...
Pretty new to me, too...
Rick
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 18, 2003 10:35 AM
> To: CF-Talk
> Subject: RE: Why am I getting this "not an available query" error?
>
>
> >> <CFLOOP Query="#Session.Cart#">
>
> <Coming in late as usual>
>
> Eh? Never used CF Loop like that before... is it not just a
> string that
> goes into the query attribute of the cfloop?
>
> From the docs...
> <cfloop query = "query_name"
> startRow = "row_num"
> endRow = "row_num">
>
> ie query_name not the actual query
>
> Have you tried setting it to a local variable...
>
> <cfset qBasket = session.cart>
> or
> <cfset qBasket = duplicate(session.cart)>
>
> #dc
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~|
> Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137483
> Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
> Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
> Unsubscribe:
> http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=708.628.4
>
> Your ad could be here. Monies from ads go to support these
> lists and provide more resources for the community.
> http://www.fusionauthority.com/ads.cfm
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137490
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com