I'm new to Cold Fusion but not DBs or Programming .... I have the following code ...
<cfoutput>
<cfloop index="eAddrs" list="#myStr#" delimiters=",">
<cfquery name="bums" datasource = "#app.datasource#">
SELECT Status, BadEmail FROM UserDetails WHERE
UserID = (SELECT UserID FROM Users WHERE Email
= '#eAddrs#')
</cfquery>
<cfloop query="bums">
<cfif #BadUserEmails.recordCount# LT 1>
#curEmailAddress# <b>>>>></b> #NotFound#
<cfelseif #BadUserEmails.recordCount# GT 1>
#curEmailAddress# <b>>>>></b> #Duplicate#
<cfelse>
#curEmailAddress# <b>>>>></b>
Status = bums.Status# <b>>>>></b>
BadEmail = #bums.BadEmail#
</cfif>
</cfloop>
<br>
</cfloop>
</cfoutput>
... What I want it to do is "for each member in the list run the query and do some work (in this case just printing the results ... baby steps)" ... what it's doing is running the query once and doing the work for the first member of the list then just looping through the list and never running the query again .... I can't seem to find an example of this type of opperation or I'm not filling in the search boxes with Cold Fusion Terms
<cfoutput>
<cfloop index="eAddrs" list="#myStr#" delimiters=",">
<cfquery name="bums" datasource = "#app.datasource#">
SELECT Status, BadEmail FROM UserDetails WHERE
UserID = (SELECT UserID FROM Users WHERE Email
= '#eAddrs#')
</cfquery>
<cfloop query="bums">
<cfif #BadUserEmails.recordCount# LT 1>
#curEmailAddress# <b>>>>></b> #NotFound#
<cfelseif #BadUserEmails.recordCount# GT 1>
#curEmailAddress# <b>>>>></b> #Duplicate#
<cfelse>
#curEmailAddress# <b>>>>></b>
Status = bums.Status# <b>>>>></b>
BadEmail = #bums.BadEmail#
</cfif>
</cfloop>
<br>
</cfloop>
</cfoutput>
... What I want it to do is "for each member in the list run the query and do some work (in this case just printing the results ... baby steps)" ... what it's doing is running the query once and doing the work for the first member of the list then just looping through the list and never running the query again .... I can't seem to find an example of this type of opperation or I'm not filling in the search boxes with Cold Fusion Terms
