统计器问题
俺已经拿到了追捕的ip数据库,里面有一个表ip2add,4个字段startip,endip,country,local全部为文本类型
通过Request.ServerVariables("REMOTE_ADDR")也可以轻松得到来访者ip
现在想通过between语句查相应的物理地址
使用如下语句
cip=Request.ServerVariables("REMOTE_ADDR")
set rs=server.CreateObject("adodb.recordset")
sql="select top 1 country,local from ip2add where "& cip &"between startip and endip"
rs.open sql,conn,1,3
response.write rs("local")
提示这样的错误
[Microsoft][ODBC Microsoft Access Driver] 号码的语法错误 在查询表达式 '172.16.15.107 between startip and endip' 中。
望高手指教