Hi
i have this code
<table colspan="3" border="0" width="100%" class="bar">
<tr>
<td width="50%" align="left">Last change: '.$datum.'</td>
<td width="50%" align="right">';
if ($row["strHlink"]) {
$html_text .= '<a href="'.$row["strHlink"].'" class="bar" target="_blank">'.$row["expAbbr"].'</a>';
}
else {
$html_text .= $row["expAbbr"];
}
$html_text .= ' <a href="'.$intranet_url.'" class="bar" target="_blank">Intranet</a>
</td>
</tr>
</table>
What i want is that
when $datum is 1 month old i want class="bar1"
when $datum is 2 month old i want class="bar2"
when $datum is 3 month old i want class="bar3"
when $datum is 4 month old i want class="bar4"
....
till 12 month i want class="bar12"
after 12 month the class stays bar12
etc
can someone help me with that