Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Table Replication

    Does anyone know how the following code can be modified to produce all data in
    one table instead of the page replicating tables? I'm trying to access the data
    from an external program and will only look at 1 table....

    CODE:

    <CFQUERY DATASOURCE="datasource" NAME="authorize">
    SELECT businessname, username, date
    FROM authorize
    ORDER BY businessname, username, date
    </CFQUERY>


    <CFOUTPUT QUERY="authorize">
    <table width="100%" border="0">
    <tr> <font face="Arial" size="2">
    <td width="400" valign="top"><p>#businessname#</p>
    &nbsp;</td>
    <td width="400" valign="top"><p>#username#</p>
    &nbsp;</td>
    <td width="400" valign="top"><p>#date#</p>
    &nbsp;</td>
    </font> </tr>
    </table>
    </CFOUTPUT>


    RESULT:

    <body>

    <table width="100%" border="0">
    <tr> <font face="Arial" size="2">
    <td width="400" valign="top"><p>Developer</p>
    &nbsp;</td>
    <td width="400" valign="top"><p>test2</p>
    &nbsp;</td>
    <td width="400" valign="top"><p>2005-10-09 15:27:32.0</p>
    &nbsp;</td>
    </font> </tr>
    </table>

    <table width="100%" border="0">
    <tr> <font face="Arial" size="2">
    <td width="400" valign="top"><p>Programmer</p>
    &nbsp;</td>
    <td width="400" valign="top"><p>test1</p>
    &nbsp;</td>
    <td width="400" valign="top"><p>2005-10-09 15:27:07.0</p>
    &nbsp;</td>
    </font> </tr>
    </table>

    </body>

    InkFasT! Guest

  2. Similar Questions and Discussions

    1. Replication
      Hi, Check the last couple of checkpoints on the primary and secondary servers - they should be within seconds of each other (assuming the clocks...
    2. File Replication
      Hi There I have content on a windows 2003 server (server1) that I need to replication to another windows 2003 server (server2). I would like...
    3. DB2 V7 replication
      Hi, How many ways are there to replicate data with DB2 V7 from Windows to linux? Thanks in advance, Ming
    4. One way replication
      Help We want to have a DB2 server that expose to the internet for read only. And one internal server for Read & write. Is there a way to...
    5. Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table.
      We are getting this error after clearing the web.config of database infomation - even after using the wizard to re-enter the information. I could...
  3. #2

    Default Re: Table Replication

    Hi InkFast!,

    Put the table tags outside of the CFOUTPUT section.

    HTH,
    philh Guest

  4. #3

    Default Re: Table Replication

    Thanks! Can't believe I didn't know that.
    InkFasT! Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139