Hi. I'm passing a comma-delimited string from a form on page1 to page2. On page2, I need to loop the list and update the db table. Basically, I'm re-assigning a sort order on each record id. I have the following but it's not working..
from page1:
(sortid is 10, 20, 30, 40, 50, 60, 70)
(sortorder is 1,3,2,4,5,6,7)
page2:
<cfloop index="i" list="#form.sortid#">
<CFQUERY NAME="updsitemenu" DATASOURCE="#session.dsn#"
>
update menu
set [order] ='#form.sortorder#'
</CFQUERY>
</cfloop>
Start Free Trial