asp语法问题

[复制链接]
查看11 | 回复4 | 2010-12-12 10:01:12 | 显示全部楼层 |阅读模式
//数据库是连接成功的,朋友帮我看看语法错哪里了,这个页面显示HTTP500内部错误
psd then
response.Write ""
response.End()
else
session("name1")=name1
response.Write("ss")
end if
end if
rs.close
set rs=nothing
con.close
%>
conn.asp是对的,另外一个注册页面也是用它的

回复

使用道具 举报

千问 | 2010-12-12 10:01:12 | 显示全部楼层
sql="select * from student where name='"+name1+"'"换成sql="select * from student where name='"&name1&"'"ASP里的连接符是&,不是+
回复

使用道具 举报

千问 | 2010-12-12 10:01:12 | 显示全部楼层
sql="select * from student where name='"+name1+"'"你这句要加号做什么开始不是定义的是mame1吗,把加号去掉换成&还有检查下你在conn.asp中定义的是conn还是con,与这页的要相同才ok
回复

使用道具 举报

千问 | 2010-12-12 10:01:12 | 显示全部楼层
建议把conn.asp页也发出来方便检查错误。
回复

使用道具 举报

千问 | 2010-12-12 10:01:12 | 显示全部楼层
末句
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行