主题:唉,好怪...
代码:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%response.Buffer=true%>
<!--#include virtual="../bbs/conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
dim bbs_id
bbs_id=request("bbs_id")
'bbs_id=2
'response.Write bbs_id
sql="Update bbs set hits=hits+1 where bbs_id=" & bbs_id
db.execute(sql)
db.close
response.Redirect"part.asp?bbs_id="&bbs_id
%>
</body>
</html>
IE报错:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 'bbs_id=' 中。
/biyesheji/bbs/count_hits.asp, 第 17 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /biyesheji/bbs/count_hits.asp
时间:
2007年4月3日, 19:20:44
真的好怪...虽然报错了..但确能写入数据库..什么问题提呀请问~~
大虾们快来99我~~~~~~~~~~~~~
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%response.Buffer=true%>
<!--#include virtual="../bbs/conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
dim bbs_id
bbs_id=request("bbs_id")
'bbs_id=2
'response.Write bbs_id
sql="Update bbs set hits=hits+1 where bbs_id=" & bbs_id
db.execute(sql)
db.close
response.Redirect"part.asp?bbs_id="&bbs_id
%>
</body>
</html>
IE报错:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 'bbs_id=' 中。
/biyesheji/bbs/count_hits.asp, 第 17 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /biyesheji/bbs/count_hits.asp
时间:
2007年4月3日, 19:20:44
真的好怪...虽然报错了..但确能写入数据库..什么问题提呀请问~~
大虾们快来99我~~~~~~~~~~~~~