不显示

ruanjiancomputer 2003-04-03 02:32:20
<%if rs2("idate")<>"" then
if DateDiff("d",rs2("idate"),date())=-1 then
response.write "(<font color=red>还有1天</font>)"
end if
if DateDiff("d",rs2("idate"),date())=-2 then
response.write "(<font color=red>还有2天</font>)"
end if
if DateDiff("d",rs2("idate"),date())=-3 then
response.write "(<font color=red>还有3天</font>)"
end if
if DateDiff("d",rs2("idate"),date())=-4 then
response.write "(<font color=red>还有4天</font>)"
end if
if DateDiff("d",rs2("idate"),date())=-5 then
response.write "(<font color=red>还有5天</font>)"
end if
end if
如果DateDiff("d",rs2("idate"),date())>0就不显示这个记录,怎么实现
...全文
33 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧