Advertisement

04.20.2008 at 02:32PM PDT, ID: 23338168
[x]
Attachment Details

loop through list, update qry

Asked by COwebmaster in ColdFusion Application Server

Tags: Adobe, coldfusion, 7

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
[+][-]04.21.2008 at 01:33AM PDT, ID: 21399561

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 05:45AM PDT, ID: 21401014

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 05:48AM PDT, ID: 21401043

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 10:16AM PDT, ID: 21403945

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 10:33AM PDT, ID: 21404110

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 10:43AM PDT, ID: 21404195

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 10:49AM PDT, ID: 21404262

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 11:33AM PDT, ID: 21404644

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 11:36AM PDT, ID: 21404670

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: Adobe, coldfusion, 7
Sign Up Now!
Solution Provided By: srikanthmadishetti
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.21.2008 at 11:59AM PDT, ID: 21404861

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 12:30PM PDT, ID: 21405121

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628