前辈门看看我的ASP代码哪里错了?

来源:百度知道 编辑:UC知道 时间:2024/09/23 00:26:36
<!--#include file=conn.asp-->
<%
top=1
exec="insert into liuyb(top)values("&top&")"
conn.execute exec
conn.close
set conn=nothing
%>
<SCRIPT LANGUAGE=vbscript>
<!--
msgbox("信息已成功提交")
window.top.location.href="index.asp"
-->
</SCRIPT>
TOP数值型

"insert into liuyb([top]) values("&top&")"

改为<!--#include file="conn.asp" -->

另外看看TOP是什么类型,如果是字符型'"&top&"'

其它的没什么毛病