sql="select * from bbs_mail where name=' " & session("name") & " ' "
rs.open sql,conn,3,2
if rs.eof then
resposne.write"记录为空"
else
if cint(rs("read"))=0 then
response.write "<body onload=open('mail.asp','','width=400,height=400')>"
else
response.write"你没有新的信息"
end if
end if
[此贴子已经被作者于2005-5-19 13:44:44编辑过]