#52003/8/25 7:57:39
那高手们再帮我看这一段吧。多谢了。
'当表中同一IP的投票时间大于30分钟,则将些浏览者的投票结果增加到IP表中
if datediff("d",rs.fields("c_ip_datetime"),now)<1 and int(now-rs.fields("c_ip_datetime"))>30 then
SQLStr="INSERT INTO t_ip(c_ip_address,c_ip_datetime,c_vote_no) valueS('" & request.cookies("IPAddress") & "',now(),'" & request("options") & "')"
conn.execute(SQLStr)
'返回值为1,表示已成功投票;否则返回值为-1时,表示此浏览者已投过票
outcome=1
else
outcome=-1
end if
为什么我隔了半个小时后再投票,为什么不能成功。到底那出错了。
编辑历史:[这消息被阿哲2002编辑过(编辑时间2003-08-25 07:59:05)]