Solved

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

Posted on 2003-12-06
1
169 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 75 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now