如果信息过期怎么样让其不显示联系方式ASP代码

来源:百度知道 编辑:UC知道 时间:2024/06/04 03:01:55
请问具体的代码是什么
急用

<%dim mtimemtime="2008-10-26" '取数据库内时间'if datediff("d",mtime,date())< 20 thenResponse.write"显示"elseResponse.write"不显示"end if%>
是否是这个 :)

在SQL里面判断即可,
sql="select * from [biao] where datediff("d",riqi,now())<5"'与现在差5天的记录