problem with php and bgcolor in ie & chrome, fine in FF
Posted: Tue Oct 05, 2010 6:38 am
Hello All,
Probably something really simple that I'm missing that's causing bgcolour load problems in ie and chrome. If $mon69 is selected it's meant to change colour from #ffffff to #FF7E06. This bit is fine. If it's not selected it's meant to saty at #fffffff. In ie and chrome it's displayed as a red background colour. Any ideas what might be going on? TIA.
Probably something really simple that I'm missing that's causing bgcolour load problems in ie and chrome. If $mon69 is selected it's meant to change colour from #ffffff to #FF7E06. This bit is fine. If it's not selected it's meant to saty at #fffffff. In ie and chrome it's displayed as a red background colour. Any ideas what might be going on? TIA.
Code: Select all
$available=$row['TeacherTimes'];
if ($available=="69mon"){
$mon69="#ffffff";
}
$available=$row['TeacherTimes'];
if ($available=="69tue"){
$tue69="#ffffff";
}
$available=$row['TeacherTimes'];
if ($available=="69wed"){
$wed69="#ffffff";
}
$available=$row['TeacherTimes'];
if ($available=="69thu"){
$thu69="#ffffff";
}
$available=$row['TeacherTimes'];
if ($available=="69fri"){
$fri69="#ffffff";
}
$available=$row['TeacherTimes'];
if ($available=="69sat"){
$sat69="#ffffff";
}
$available=$row['TeacherTimes'];
if ($available=="69sun"){
$sun69="#ffffff";
}Code: Select all
print("<td align=center bgcolor=$mon69 height=10><font color=#FF7E06>YES</font></td>");
print("<td align=center bgcolor=$tue69 height=10><font color=#FF7E06>YES</font></td>");
print("<td align=center bgcolor=$wed69 height=10><font color=#FF7E06>YES</font></td>");
print("<td align=center bgcolor=$thu69 height=10><font color=#FF7E06>YES</font></td>");
print("<td align=center bgcolor=$fri69 height=10><font color=#FF7E06>YES</font></td>");
print("<td align=center bgcolor=$sat69 height=10><font color=#FF7E06>YES</font></td>");
print("<td align=center bgcolor=$sun69 height=10><font color=#FF7E06>YES</font></td>");