Try putting the loop inside the TD:

<td>
    <CFLOOP QUERY="qGetAnswers">
        #Answer#
        <input type="hidden" name="Answer_ID" value="#Answer_ID#">
        <BR>
    </CFLOOP>
</td>

It'll give you one Table Data with multiple breaks.

Mark


From: "Bruce Sorge" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: Small Output Issue
Date: Sat, 12 Oct 2002 08:33:57 -0500

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





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to