我的网站有一个排行榜.是按发稿量排的.我想还增加一个条件,就是两个月内不上传稿件.该作者将不在排行榜之内.我的条件语句为
<% if rs2("num")>=85 then %>军委主席
<%else if rs2("num")>=80 then %>军委副主席
<%else if rs2("num")>=75 then %>军委委员
<%else if rs2("num")>=70 then %>大将
<%else if rs2("num")>=65 then %>中将
<%else if rs2("num")>=60 then %>少将
<%else if rs2("num")>=55 then %>首长
<%else if rs2("num")>=50 then %>司令
<%else if rs2("num")>=45 then %>军长
<%else if rs2("num")>=40 then %>师长
<%else if rs2("num")>=35 then %>旅长
<%else if rs2("num")>=30 then %>团长
<%else if rs2("num")>=25 then %>营长
<%else if rs2("num")>=20then %>连长
<%else if rs2("num")>=15 then %>排长 我的数据日期字段为dateandtime 即是这个学员上传稿件时间.我个人认为是if rs2("num")>=85 并系统计时间-dateandtime<=60 既可.但我不知道这条语句如何写.请热心的专家\技术高手\朋友帮助一下.多谢. 我的QQ为442822610
<% if rs2("num")>=85 then %>军委主席
<%else if rs2("num")>=80 then %>军委副主席
<%else if rs2("num")>=75 then %>军委委员
<%else if rs2("num")>=70 then %>大将
<%else if rs2("num")>=65 then %>中将
<%else if rs2("num")>=60 then %>少将
<%else if rs2("num")>=55 then %>首长
<%else if rs2("num")>=50 then %>司令
<%else if rs2("num")>=45 then %>军长
<%else if rs2("num")>=40 then %>师长
<%else if rs2("num")>=35 then %>旅长
<%else if rs2("num")>=30 then %>团长
<%else if rs2("num")>=25 then %>营长
<%else if rs2("num")>=20then %>连长
<%else if rs2("num")>=15 then %>排长 我的数据日期字段为dateandtime 即是这个学员上传稿件时间.我个人认为是if rs2("num")>=85 并系统计时间-dateandtime<=60 既可.但我不知道这条语句如何写.请热心的专家\技术高手\朋友帮助一下.多谢. 我的QQ为442822610
<%else if rs2("num")>=80 and dateandtime-date()<=DateNum then %>军委副主席
<%else if rs2("num")>=75 then %>军委委员
以上这样写一定不对吧.请大家帮助啊.多谢