Hi,
I am trying to display a "repeat region" of hex color codes so (which are stored in a table) so they display both over rows and columns at the same time (rather than the usual one cell that multiply itself either lenght way or sideways. I want it do do both at the same time to).
I have made some progress but:
I now display the actual codes in 3 columns, when what I would like is each color cell to take the relevant hex color, so the user can see what color it is rather that the color number itself.
here is what I got:
<?php
$row_rshex['hcode']= 1;
while ($row_rshex = mysql_fetch_assoc($rshex)) {
echo "\t<td bgcolor= row_rshex['hcode'];>". $row_rshex['hcode'] ."</td>\n";
if (($row_rshex['hcode']++ % 3) == false)
{
echo "</tr>\n<tr>\n";
}
}
?>
You see that <td bgcolor= row_rshex['hcode'];> was my attempt to get the color code to display itself, but rather be the background colour of the cell. that doesn't really work. it display one color over all the cells.
Can you help please?
Thank you,
Vinny