<%
if web_login<>1 and web_login<>2 then
  call cookies_type("loading")
  response.end
end if

'---------------------数据库类型及路径定义---------------------
dim conn,connstr
connstr="DBQ="&server.mappath(web_var(web_config,6))&";DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr

sub close_conn()
  conn.close
  set conn=nothing
end sub
%>

<%

	dim conncaipiao,connstrcaipiao,caipiaodb
	
	'更改数据库名字
	caipiaodb="data/caipiao.asp"                         '彩票数据库路
	
	Set conncaipiao = Server.CreateObject("ADODB.Connection")
	connstrcaipiao="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(caipiaodb)
	'如果你的服务器采用较老版本Access驱动，请用下面连接方法
	'connstrcaipiao="driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath(caipiaodb)	
	conncaipiao.Open connstrcaipiao
%>

