dim cn
dim connstr
dim Ad
dim ddel
' on error resume next
connstr="DBQ="+server.mappath("_jin_bbs.jdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
connstr="Driver={SQL Server};Server=(local);Uid=sa;Pwd=;Database=jinescweb"
set cn=server.createobject("ADODB.CONNECTION")
' response.write(connstr)
cn.open connstr
set rst=server.createobject("ADODB.recordset")
rst.open "select * from admin where userid='" & request.cookies.item("users") & "'" ,cn
if not (rst.eof and rst.bof) then
admin="t"
end if
rst.close
dim connstr
dim Ad
dim ddel
' on error resume next
connstr="DBQ="+server.mappath("_jin_bbs.jdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
connstr="Driver={SQL Server};Server=(local);Uid=sa;Pwd=;Database=jinescweb"
set cn=server.createobject("ADODB.CONNECTION")
' response.write(connstr)
cn.open connstr
set rst=server.createobject("ADODB.recordset")
rst.open "select * from admin where userid='" & request.cookies.item("users") & "'" ,cn
if not (rst.eof and rst.bof) then
admin="t"
end if
rst.close
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货