2 Replies Latest reply on Oct 15, 2007 1:17 PM by dizzyjay3268

    passing cf commands from db

    dizzyjay3268
      Need help. Is there a way to keep cf/html code in a db field that will be parsed as the page is created?
      Any help is appreciated (CF7,MSSQL). code upon request.
        • 1. Re: passing cf commands from db
          Level 7
          dizzyjay3268 wrote:
          > Need help. Is there a way to keep cf/html code in a db field that will be parsed as the page is created?
          > Any help is appreciated (CF7,MSSQL). code upon request.

          yes there is. post your code.

          --

          Azadi Saryev
          Sabai-dee.com
          http://www.sabai-dee.com
          • 2. Re: passing cf commands from db
            dizzyjay3268 Level 1
            Thanks for your response... i drummed up an example as an attempt to illustrate what i would like to do. "<td><cfif pendingorders.currentrow mod 2 eq 0>YES<cfelse>NO</cfif></td>" is what i have in a ntext field (named htmlcol) in the db. this is how i currently reference it on the page:
            <cfquery name="pendingOrders">
            SELECT * FROM TABLE
            </cfquery>
            <table>
            <cfoutput query="pendingOrders">
            <tr>
            <cfif htmlcol neq ''>
            #htmlcol#
            <cfelse>
            <td> </td>
            </cfif>
            </tr>
            </cfoutput>