我計算了加入日期到當前日期的員工體驗(月)。我want every **last four months in a year** (eg 9-12 and 21-24 and 33-36 etc....) employee
經驗已經顯示爲不同的顏色。(PHP代碼)每年最近四個月的顏色與其他月份的顏色不同php
First year calculation has no problem after the years the conditions is not satisfy the `above criteria.`
This is my code but i need satisfy above criteria.
if($months % 9 == 0 || $months % 10 == 0 || $months % 11 == 0 || $months % 12 == 0)
{
<span style="color:green;"><?php echo $u_tot_exp;?><span>
}
else
{
<span style="color:black;"><?php echo $u_tot_exp;?><span>
}
什麼問題/什麼是不工作? –
你的問題在哪裏? – iCaramba