Ask a Question related to Coldfusion Database Access, Design and Development.
-
CF_starter #1
WHERE = field IN #listlen()#
I'm capturing the value of wrong answers to question, i.e. 1,2,5,7, in a LIST.
I would like to use the LIST with the WHERE to generate the question
incorrectly and then display the right answer. I got it to work by doing
X-amount data queries in a loop. I don't like that solution and thought I could
it the wasy described above. Here is the code I'm using:
<cfquery name="question" datasource="#dataquery#>
SELECT *
FROM quiz
WHERE quizID IN #listlen(answer)#
</cfquery>
Answer is the LIST.
thanks
grady
CF_starter Guest
-
Forms: Text field - auto fill another field?
Someone PLEASE help me... how do i structure a form so that when text is entered into one field, it auto-fills other fields on the form that are... -
Comparing current field data with last entry for field
Hi. I have a form that is inserting sales data on a daily basis. I have a field named "RoundTOTAL" which is the total sales for the day rounded to... -
Defined text field in form -> subject field in e-mail
Hi, I have a form on my web site which users send to me by mailto-function. I would like the text they write in a particular text field to... -
Linking date field to text field entry
Is there a way to setup a date field that will automatically enter the date when any information is entered into a field next to it? -
Curved Field vs Flat Field projector lenses
I was looking thru Adorama's page and came across two Kodak projector lenses. One was a 102/2.8 "Curved Lens" the other a 100/2.8 "Flat Lens" and... -
cf_menace #2
Re: WHERE = field IN #listlen()#
ListLen(x) return the Length of the list "x".
So if you <cfset answer = "1,2,5,7">, then you're asking "WHERE quizID IN
(4)".
I'm really not sure what else you're trying to do though. Are you trying to
select the particular question, then show it with each element of the list as a
wrong answer?
cf_menace Guest
-
CF_starter #3
Re: WHERE = field IN #listlen()#
I'm trying to see if I can look at all the value in the list to return the answer. I have a loop that I'm using but that don't like that solution.
grady
CF_starter Guest
-
CF_starter #4
Re: WHERE = field IN #listlen()#
I'm trying to see if I can look at all the values in the list to return the answer. I have a loop that I'm using but that don't like that solution.
grady
CF_starter Guest
-
forumnotifier #5
Re: WHERE = field IN #listlen()#
I'm trying to see if I can look at all the values in the list to return the answer. I have a loop that I'm using but that don't like that solution.
grady
forumnotifier Guest
-
kyle969 #6
Re: WHERE = field IN #listlen()#
how does quizID relate to the answer? Show us more code, especially the old loop.
kyle969 Guest



Reply With Quote

