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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using CFTABLE to highlight a value

Status
Not open for further replies.

jmcg

Technical User
Jun 30, 2000
223
GB
I am using CFTABLE to output a query.
If a row has a certain value (x) that row should be highlighted.
How can I do this.
I've tried using CFIF with the TEXT part of the CFCOL but CF seems to ignore this.
 
<table bgcolor=&quot;cyan&quot;>
<cfoutput query=&quot;queryName&quot;>
<cfif myField IS X>
<tr bgcolor=&quot;lime&quot;>
<cfelse>
<tr>
</cfif>

<td>....</td>
</tr>
</cfoutput>
</table>
 
philcha

Thanks for this, but I was trying to do it using the CFTABLE rather than the normal HTML Table tag.
If this is not possible I'll will use your sample.
Ta
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top