Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display cfquery in html tables

Status
Not open for further replies.

jgroove

Programmer
Jul 9, 2001
43
US
I am trying to popluate an html table with data from a cfquery. The table has a lot of formating and colours. I looked at the <cftable htmltable> but it doesn't have any of the formating that I need i.e. cellspacing cellpading bgcolour etc. Is there a way to keep all of my html fomating? or some other way to populate the table from the query?

 
Try using <table> instead of cftable
like
<table border=0 ...etc...>
<!--- put a header or something--->
<cfoutput query=&quot;myQuery&quot;>
<tr>
<td>#Field1#</td>
<td>#Field2#</td>
.
.
.
<td>#FieldN#</td>
</tr>
</cfoutput>
</table>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top