Hello I am new to this forum. I have a problem I am trying to display A image inside a table.
The value of the field can be (1,2,3,4). Does somebody know whats wrong with my code… cant seem to find the problem.
CSS:
[code].Laag1 {
background-image: url(‘assets/Priority/laag.png’);
height:16px;
width:16px;
background-repeat: no-repeat;
background-position: center;
}
.Normaal2 {
background-image: url(‘assets/Priority/normaal.png’);
height:16px;
width:16px;
background-repeat: no-repeat;
background-position: center;
}
.Hoog3 {
background-image: url(‘assets/Priority/hoog.png’);
height:16px;
width:16px;
background-repeat: no-repeat;
background-position: center;
}
.Urgent4 {
background-image: url(‘assets/Priority/urgent.png’);
height:16px;
width:16px;
background-repeat: no-repeat;
background-position: center;
} [/code]
Code inside my table
[php]
if ($data_fetch[‘Tkt_Priority’] == 1)
echo “
else if ($data_fetch[‘Tkt_Priority’] == 2)
echo “
else if ($data_fetch[‘Tkt_Priority’] == 3)
echo “
else if ($data_fetch[‘Tkt_Priority’] == 4)
echo “
else
echo “
Example:
http://img15.imageshack.us/img15/7295/voorbeeldb.jpg
Thanks in advance.
Robin