Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: rere
I have a text area were I input 6 numbers (ex. 123456, 25698,12564,8899664, etc) the first problem is I would like for the numbers
to be displayed in a verical list (12345
12345
12345 etc)
The second problem is I am comparing the numbers in the list with numbers that are in a Database. I do know that 1 set of the
numbers exists, when I run my query with all the numbers being submitted I get no records found, however if I run the query with
only the set of numbers that is in the database i get 1 record found for 12345,
here is my code
<cfquery name="TRI">
Select IDnumbers from Process where IDnumbers like '%#DepID#%'
cfloop = "TRI" list="#DepID#"
cfoutput #Tri.Recordcount found #DepID#
DepID is the name given to the textarea were the numbers are posted.
I know the syntax in not correct I'm just trying to get an idea of what the problem is. and what direction should i be heading in
Copy link to clipboard
Copied