i cant seem to solve this.
how do i change the cell background color using php?
this is what i got;
<tr>
<td ><span class="style2">1</span></td>
<td >PERAK IP-F002</td>
<td bgcolor=<? if($a1==1) echo "#00ff00"; else echo "#ff0000"; ?>> </td>
<td bgcolor=<? if($a2==1) echo "#FF0000"; else echo "#00FF00"; ?>> </td>
<td bgcolor=<? if($a3==1) echo "#00ff00"; else echo "#ff0000"; ?>> </td>
</tr>
<tr>
is this correct?