messagecount.asp

来自「这是一个校友录管理系统」· ASP 代码 · 共 36 行

ASP
36
字号
<%
Function MessageCount(Active)
IF Active="all" Then
SQL="Select * From message Where incept='"& Session("User") &"'"
ElseIF Active="new" Then
SQL="Select * From message Where incept='"& Session("User") &"' And state='δ'"
End IF
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQL,Connstr,1,1
Response.Write RS.RecordCount
End Function
Function InfoCount()
SQL="Select * From news Where author ='"& Session("User") &"'"
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQL,Connstr,1,1
Response.Write RS.RecordCount
End Function
Function WishCount()
SQL="Select * From bless Where username ='"& Session("User") &"'"
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQL,Connstr,1,1
Response.Write RS.RecordCount
End Function
Function GbookCount()
SQL="Select * From forum Where username ='"& Session("User") &"'"
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQL,Connstr,1,1
Response.Write RS.RecordCount
End Function
Function LastLogonTime()
SQL="Select * From [user] Where username='"& Session("User") &"'"
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQL,Connstr,1,1
Response.Write RS("Lastdeng")
End Function
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?