Thanks for your help, but I do not know enough to finish this although I am trying...
This is my array. I tried your suggestion in many different ways, but have struggled.
This is the best I have done so far. It gives me a calculated result, but I have not been able to show a figure with a leading+ if > than 0. The current calc displays with a leading - if it is < 0.
I also still would like to apply the colors of red for < and black for >.
echo "\n\n\t<td bgcolor=\"white\">" .
"<font color=\"red\">" .
$diff = $row["score"] - $row["par"] .
"</font></b></th>\n";
Any help appreciated.
Thanks
Jon