回 帖 发 新 帖 刷新版面

主题:帮帮我哦

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {    font-family: "华文仿宋";
    font-weight: bold;
}
.style2 {font-size: 24px}
.style4 {font-size: 12px}
.style6 {font-size: 10px}
-->
</style>
</head>

<body>
<%
if request("add")="yes" then
Inaccounts=request("Inaccounts")
Infactory=request("Infactory")
Sequence=request("Sequence")
Accountant=request("Accountant")
keeping=request("Keeping")
Handman=request("Handman")

sql="insert into instorage(Inaccounts,Infactory,Sequence,Accountant,Keeping,Handman) values ('"&Inaccounts&"','"&Infactory&"','"&Sequence&"','"&Accountant&"','"&Keeping&"','"&Handdman&"')"
conn.execute(sql)
end if

%>
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/毕业设计1/rukupindan.asp, line 30, column 174
sql="insert into instorage(Inaccounts,Infactory,Sequence,Accountant,Keeping,Handman) values ('"&Inaccounts&"','"&Infactory&"','"&Sequence&"','"&Accountant&"','"&Keeping&"','"&Handdman&"')"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------^


[size=5][color=FFFF00]我在别的页面上使用可以用为什么在这个子页面就有错误呢[/color][/size]错误是

回复列表 (共5个回复)

沙发

上面看不清楚我的地方 我对此感到抱歉是 我想问的是  我在别的页面都可以做出效果,为什么在这里就不行啦呢  有什么地方不对的不

板凳

你在插入前将sql输出看看是否正确
你要插入的表中所有字段都是文本型吗?

3 楼


我所有字段改成文本型的但是还是不行   我是做啦六个这样代码只有两个报这样的错误在另外四个可以用的为什么在这里就不行呀

4 楼

你暂时不要管做了几个: 你报的错误是-- "语句未结束",你用response.write(sql) 看一下有没有错啊.........

5 楼

我也不晓的!


http://www.mzit.com ;IT学习资料网!  请大家多提意见
 如果还不知道可以找我
   www.mzit.com
   www.yidu35.com
   www.yidu35.cn
   www.yidu35.com.cn
   www.yidu35.net
   www.yahucn.com   
   QQ:672700119
   email:studentnet@163.com

我来回复

您尚未登录,请登录后再回复。点此登录或注册