小问题,有点急

lance198420 2008-07-16 06:30:32
<!--#include file="include/conn_new.asp"-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>


<%
function repiacebr(brvalmystr)
replacebr=replace(mystr,chr(13),"<br>")
end function
%>
学号:<%=request.form("xh")%><br>
姓名:<%=request.form("xm")%><br>
性别:<%=request.form("xb")%><br>
课程名:<%=request.form("kcm")%><br>
分数:<%=request.form("fs")%><br>
年龄:<%=request.form("age")%><br>
</select>
<%
dim strsql,str1sql,vxh,vxm,vxb,vkcm,vfs,vage
vxh=request.form("xh")
vxm=request.form("xm")
vxb=request.form("xb")
vkcm=request.form("kcm")
vfs=request.form("fs")
vage=request.form("age")





strsql="insert into xsb(xh,xm,xb,age) values('"&vxh&"', '"&vxm&"', '"&vxb&"', '"&vage&"')"


oconn.execute(strsql)

str1sql="insret into cjb(cjb_xh,cjb_fs) values('"&vxh&"','"&vfs&"')"
oconn.execute(str1sql)
response.write"<h2>添加成功</h2>"




%>






</body>
</html>
以上数据是添加到SQL2个表里的数据,为什么我str1sql添加不到cjb就出错,说INTO附近语法错误
...全文
63 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
bhtfg538 2008-07-16
  • 打赏
  • 举报
回复
给分哈
lance198420 2008-07-16
  • 打赏
  • 举报
回复
我晕,,谢谢了,,就为这1个问题看了我1个小时,,,头都昏了,奶奶的
bhtfg538 2008-07-16
  • 打赏
  • 举报
回复
str1sql="insret into cjb(cjb_xh,cjb_fs) values('"&vxh&"','"&vfs&"')"
insret 写错了
insert这才是正确的

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧