asp想把每个用户有多少个未读信息列表出来怎么做?

来源:百度知道 编辑:UC知道 时间:2024/07/07 10:50:36
我已经下载到一套asp源代码,现在想把每个用户有多少个未读信息列个表显示出来怎么做?

function viewUserUnMsg(id)
set rs=server.creatObject("adodb.recordset")
rs.open "select * from [信息表] where [收信人的字段]="&str&" and [数据表里表示未读的字段]=false " ,conn,1,1
viewUserUnMsg=0
if not rs.eof then
viewUserUnMsg=rs.recordcount
end if
end function
运行时,未读信息的变量=viewUserUnMsg(用户id)

看不懂!
你还是把代码贴出来别人才能帮你解答!
Q251721079