Display colour from html code read in from database

dakisbg

New Member
I have written a simple \[code\]asp\[/code\] command that is retrieving HTML colour codes from a database and these are being displayed in a table as so -\[code\]<table border="1" width="75%" cellspacing="0" cellpadding="0" align="right"><tr><%for each x in rs.Fieldsresponse.write("<th>" & x.name & "</th>")next%></tr><%do until rs.EOF%><tr><%for each x in rs.Fields%> <td><%Response.Write(x.value)%></td><%nextrs.MoveNext%></tr><%looprs.closeconn.closeend if%></table>\[/code\]Is there a way that in the column that holds these individual HTML colour values, to have the background of their specific cells to be set to their respective colours?
 
Back
Top