Code: Select all
if ($row->status == "on hold") { echo "
<tr bgcolor='#FFCF00' onMouseOver=\"this.bgColor='#FFCF00';\" onMouseOut=\"this.bgColor='#FFCF00';\">
"; }
elseif ($row->status == NULL) { echo "
<tr bgcolor='#ffffff' onMouseOver=\"this.bgColor='#E7E7E7';\" onMouseOut=\"this.bgColor='#FFFFFF';\">
"; }This on it's own....
Code: Select all
<tr bgcolor='#ffffff' onMouseOver=\"this.bgColor='#E7E7E7';\" onMouseOut=\"this.bgColor='#FFFFFF';\">So what's wrong with the If statement? I am sure it is something to do with the " and ' (from a previous post about this, I could understand), but it appears fine to me.
It's meant to highlight the row light grey on hover(mouseover), but for those 'on hold' it should stay orange.