用户停留时间如何 入库? 高手帮我看看~ 急急急!
阿来 2012-05-03 05:58:18 <%
studyid=session("studyid")
set rs = server.createobject("adodb.recordset")
rs.source = "select * from student where studyid='"&studyid&"'"
rs.open rs.source,conn,1,1
logintime=rs("logintime")
rs.close
stay=DateDIff("s",logintime,now())
stay=stay/60
stay=Int(stay/60)&"小时"&Int(stay mod 60)&"分钟"
%>
这里有student表 里面有studyid 和 logintime字段
在asp 上 调用这个 在线时长:<%=stay%> 时间正常显示 如:在线时长 :0小时15分钟
但把这个时长我怎么入数据库呢?
帮忙吧 ~ 具体代码怎么写 ?