Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

after updating form using cfloop - how to dislay results using form parameters

Posted on 2003-12-06
1
Medium Priority
?
213 Views
Last Modified: 2013-12-24
I'm updating my form like this:

<CFLOOP INDEX=Counter FROM=1 TO=#ListLen(ExAutoArtID)#>
   <CFQUERY NAME="UpdateExBuilder" DATASOURCE="Ikonltd">
       UPDATE ExBuilder
       SET OrderID=#ListGetAt(OrderID,Counter)#,
ExID=#ListGetAt(ExID,Counter)#,
AutoArtID=#ListGetAt(AutoArtID,Counter)#
       WHERE ExAutoArtID=#ListGetAt(ExAutoArtID,Counter)#
   </CFQUERY></CFLOOP>

my problem is:

how can i display my update results when (for instance) #form.ExID# doesn't equal 17 but 17,17,17 depending upon how many records i insert?

so how do i get this to fly;

<cfquery name="Ex" deflault="dsn">
Select Extitle from Exhibitions where ExID=#form.ExID#
</cfquery>

<cfoutput>#Ex.Extitle#</cfoutput>
0
Comment
Question by:phillystyle123
1 Comment
 
LVL 12

Accepted Solution

by:
jyokum earned 300 total points
ID: 9889950
<cfquery name="Ex" deflault="dsn">
Select Extitle from Exhibitions where ExID IN (<cfqueryparam value="#form.ExID#" list="yes" cfsqltype="cf_sql_numeric">)
</cfquery>

<cfoutput query="Ex">
#Ex.Extitle#<br />
</cfoutput>
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question