欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

网络寻呼机数据库版隐藏文件watch.asp

程序员文章站 2023-01-23 22:10:49
<%     username=session("username")   &nbs...
<%
    username=session("username")
    if username<>"" then

    set conn=server.createobject("adodb.connection")
    provider = "provider=microsoft.jet.oledb.4.0;"
    dbpath = "data source=" & server.mappath( "webuser.mdb" )

    conn.open provider & dbpath
    
    sql="select toname,isread,adddate from talks where toname="& username &"and isread=0 order by adddate"
    set rs=conn.execute(sql)
    if not rs.eof then
    response.write "<script>window.open(showmessage.,,width=580,height=400,scrollbars=yes)</script>"
    end if
    rs.close
    set rs=nothing
    conn.close
    set conn=nothing
    
    end if

%>