Question
Coldfusion loop in sql query
Hi This is my problem
I am trying to build a cart system for a website and I was going to store the information in a cookie then pull the cookie elements loop through and build the sql query based on my output.
Now the output I get when I run it looks fine but the query return nothing, but when I grab the output and put it in the query litteraly through EM it return the values? My question is, will this work? Also if not what should I be useing? I have seen useing the CLIENT vars might be a better way? Anyone have any tutorials? Or are sessions good for this? I read they were not good for carts if the CF install was on a cluster.
Thanks for all your help.
Mike.
I am trying to build a cart system for a website and I was going to store the information in a cookie then pull the cookie elements loop through and build the sql query based on my output.
Now the output I get when I run it looks fine but the query return nothing, but when I grab the output and put it in the query litteraly through EM it return the values? My question is, will this work? Also if not what should I be useing? I have seen useing the CLIENT vars might be a better way? Anyone have any tutorials? Or are sessions good for this? I read they were not good for carts if the CF install was on a cluster.
Thanks for all your help.
Mike.
