if($catid==77)
{
$days= diffBetweenTwoDays($vo['riqi'],date("y-m-d",time()));
if($days==0)echo "今天";
elseif($days==1)echo "明天";
elseif($days==2)echo "后天";
else echo $days."天";
}elseif($catid==78)
{
echo "过期";
}
diffBetweenTwoDays:参考“求两个日期之间相差的天数”
上一篇>>thinkphp 购物车
下一篇>>PHP list() 函数
Copyright © 2016 Allister All Rights Reserved