Mud functions are always a mess.   J

 

The easiest solution is to move the <td> tag outside of your inner loop:

 

 

**************************

Billy Cravens

Web and Software consulting

www.Architechx.com

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bruce Sorge
Sent: Saturday, October 12, 2002 8:34 AM
To: [EMAIL PROTECTED]
Subject: Small Output Issue

 

Hello all,

 

I have the following code:

 

<cfoutput query = "qGetQuestions">

        <TR>

          <TH> <div align="left">#Question#</div>

            <input type="hidden" value="#Question_ID#" name="Question_ID">

          </TH>

                          <cfloop list="#Answer_ID#" index="x">

                          <cfstoredproc procedure="PR_UserGetAnswers" datasource="#Session.DSN#">

                                    <cfprocparam cfsqltype="cf_sql_integer" dbvarname="Question_ID" type="in" value="#Question_ID#">

                                    <cfprocparam cfsqltype="cf_sql_integer" dbvarname="Answer_ID" type="in" value="#x#">

                                    <cfprocresult name="qGetAnswers">

                          </cfstoredproc>

                         

              <CFLOOP QUERY="qGetAnswers">

                <td>

                                                            #Answer#

                                                            <input type="hidden" name="Answer_ID" value="#Answer_ID#"><BR>

                                                </td>

                                    </CFLOOP> 

                         </cfloop>

                    </tr>

      </cfoutput>

 

All works great except for the Answer output. The answers come from a select list. When the user selects more than one item in the list, then what I want is for each item to break after the first. That is not happening. What is happening is that each answer is going into it’s own td cell. I tried using a cfif with a mud function, but it was not working correctly. Can anyone assist?

 

TIA,

 

Bruce

Reply via email to