Sorry John,
I thought you wanted to see the HTML that was above my php code. But anyways I tried to find something that did not return too many results (The Database has 7000+ records).
Here goes (this is the HTML when I hit view source while previewing)
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #000000;
background-image: url(Images/MainFrameBG.gif);
}
.style1 {color: #FFFFFF}
body,td,th {
color: #FFFFFF;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: center;
}
-->
</style></head>
<body>
<div align="left"></div>
You Entered into the form:<BR><BR>UNITS: Metric<BR>TYPE: Medium Pitch Rougher<BR>PART NUMBER: <BR>DIAMETER: <BR>CUTTING EDGE LENGTH <BR>SHANK <BR>OAL <BR>NO OF FLUTES: 4<BR>ENDTYPE Square<BR>COATING %<BR><BR>
<table width="757" border="1">
<tr scope="col">
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th colspan="4" bgcolor="#0066FF">Dimensions</th>
<th> </th>
<th> </th></tr>
<tr scope="col">
<th bgcolor="#0066FF">Part Number</th>
<th bgcolor="#0066FF">Endmill Type</th>
<th bgcolor="#0066FF">Flutes</th>
<th bgcolor="#0066FF">Endtype</th>
<th bgcolor="#0066FF">Cutting Edge Diameter</th>
<th bgcolor="#0066FF">Cutting Edge Length</th>
<th bgcolor="#0066FF">Shank Diameter</th>
<th bgcolor="#0066FF">Overall Length</th>
<th bgcolor="#0066FF">Coating</th>
<th bgcolor="#0066FF">Price</th></tr>
<center>There Were 12 Endmills Found Matching Your Query: </center><BR>
<tr>
<td>86912</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>12</td>
<td>25</td>
<td>12</td>
<td>75</td>
<td bgcolor="#000000">Uncoated</td>
<td>75.40</td>
</tr>
<tr>
<td>86913</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>12</td>
<td>25</td>
<td>12</td>
<td>75</td>
<td bgcolor="#000000">TiN</td>
<td>83.00</td>
</tr>
<tr>
<td>86914</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>12</td>
<td>25</td>
<td>12</td>
<td>75</td>
<td bgcolor="#FFCC33">TiCN</td>
<td>86.80</td>
</tr>
<tr>
<td>86915</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>12</td>
<td>25</td>
<td>12</td>
<td>75</td>
<td bgcolor="#999999">TiALN</td>
<td>86.80</td>
</tr>
<tr>
<td>86916</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>16</td>
<td>32</td>
<td>16</td>
<td>88</td>
<td bgcolor="#660033">Uncoated</td>
<td>129.00</td>
</tr>
<tr>
<td>86917</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>16</td>
<td>32</td>
<td>16</td>
<td>88</td>
<td bgcolor="#000000">TiN</td>
<td>139.20</td>
</tr>
<tr>
<td>86918</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>16</td>
<td>32</td>
<td>16</td>
<td>88</td>
<td bgcolor="#FFCC33">TiCN</td>
<td>145.10</td>
</tr>
<tr>
<td>86919</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>16</td>
<td>32</td>
<td>16</td>
<td>88</td>
<td bgcolor="#999999">TiALN</td>
<td>145.10</td>
</tr>
<tr>
<td>86920</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>20</td>
<td>38</td>
<td>20</td>
<td>100</td>
<td bgcolor="#660033">Uncoated</td>
<td>151.00</td>
</tr>
<tr>
<td>86921</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>20</td>
<td>38</td>
<td>20</td>
<td>100</td>
<td bgcolor="#000000">TiN</td>
<td>163.00</td>
</tr>
<tr>
<td>86922</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>20</td>
<td>38</td>
<td>20</td>
<td>100</td>
<td bgcolor="#FFCC33">TiCN</td>
<td>171.00</td>
</tr>
<tr>
<td>86923</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>20</td>
<td>38</td>
<td>20</td>
<td>100</td>
<td bgcolor="#999999">TiALN</td>
<td>171.00</td>
</tr>
</body>
</html>
I did view source and touched it up a little bit to make it more readable on this post. I did not delete anything. OK here is the problem, take for example the first row that is a returned result.
<tr>
<td>86912</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>12</td>
<td>25</td>
<td>12</td>
<td>75</td>
<td bgcolor="#000000">Uncoated</td>
<td>75.40</td>
</tr>
This row for example is correct the background color is #000000 which is correct for Uncoated.
The second Row:
<tr>
<td>86913</td>
<td>Medium Pitch Rougher</td>
<td>4</td>
<td>Square</td>
<td>12</td>
<td>25</td>
<td>12</td>
<td>75</td>
<td bgcolor="#000000">TiN </td>
<td>83.00</td>
</tr>
In this case the second row bgcolor="#000000" is incorrect for "TiN" TiN should be yellow in color not black.
TiN should be Yellow #FFCC33, TiCN should be gray #999999, TiALN should be purple (what ever that hex-code is).
My code is placing the color one data row lower than where assigned by my code.
The following row lists the yellow color, but it shound be gray because the data for that row indicates TiCN.
tr>[/COLOR]
Hope that will help some. I realized when you told me that you could not see the problem, you dont have my database so it would make it pretty hard to see anything. If there is any other information I can get fell free to let me know. I am pulling my hair out over this.
My finger is starting to hurt from all the scrolling.
Thank you, You are the best,
Shane